{"title":"JsonToken data type","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/jsontoken/jsontoken-data-type/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/jsontoken/jsontoken-data-type, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/jsontoken/jsontoken-data-type","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Is a container for any well-formed JSON data.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Instance methods","slug":"instance-methods","at":166,"chars":1718},{"level":2,"title":"Related information","slug":"related-information","at":1884,"chars":117}],"text":"> Version: _Available or changed with runtime version 1.0._\nIs a container for any well-formed JSON data. A default JsonToken object contains the JSON value of NULL.\n## Instance methods\nThe following methods are available on instances of the JsonToken data type.\nMethod name|Description\njsontoken-asarray-method|Converts the value in a JsonToken to a JsonArray data type.\njsontoken-asobject-method|Converts the value in a JsonToken to a JsonObject data type.\njsontoken-asvalue-method|Converts the value in a JsonToken to a JsonValue data type.\njsontoken-clone-method|Creates a deep-copy of the JsonToken value.\njsontoken-isarray-method|Indicates whether a JsonToken represents a JSON array.\njsontoken-isobject-method|Indicates whether a JsonToken contains a JSON object.\njsontoken-isvalue-method|Indicates whether a JsonToken contains a JSON value.\njsontoken-path-method|Retrieves the JSON path of the token relative to the root of its containing tree.\nReadFrom(Text)<jsontoken-readfrom-string-method>|Reads the JSON data from the string into a JsonToken variable.\njsontoken-readfrom-instream-method|Reads the JSON data from the stream into a JsonToken variable.\nSelectToken(Text, var JsonToken)<jsontoken-selecttoken-method>|Selects a JsonToken using a JPath expression.\nSelectTokens(Text, var List of [JsonToken])<jsontoken-selecttokens-method>|Selects tokens based on a JPath expression and returns them in a new list.\nWriteTo(var Text)<jsontoken-writeto-text-method>|Serializes and writes the JSON data of the JsonToken to a given Text object.\njsontoken-writeto-outstream-method|Serializes and writes the JSON data of the JsonToken to a given OutStream object.\n> NOTE\n> For performance reasons all HTTP, JSON, TextBuilder, and XML types are reference types, not value types. Reference types holds a pointer to the data elsewhere in memory, whereas value types store its own data.\n## Related information\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}