# JsonToken data type
> Version: _Available or changed with runtime version 1.0._
Is a container for any well-formed JSON data. A default JsonToken object contains the JSON value of NULL.
## Instance methods
The following methods are available on instances of the JsonToken data type.
Method name|Description
jsontoken-asarray-method|Converts the value in a JsonToken to a JsonArray data type.
jsontoken-asobject-method|Converts the value in a JsonToken to a JsonObject data type.
jsontoken-asvalue-method|Converts the value in a JsonToken to a JsonValue data type.
jsontoken-clone-method|Creates a deep-copy of the JsonToken value.
jsontoken-isarray-method|Indicates whether a JsonToken represents a JSON array.
jsontoken-isobject-method|Indicates whether a JsonToken contains a JSON object.
jsontoken-isvalue-method|Indicates whether a JsonToken contains a JSON value.
jsontoken-path-method|Retrieves the JSON path of the token relative to the root of its containing tree.
ReadFrom(Text)<jsontoken-readfrom-string-method>|Reads the JSON data from the string into a JsonToken variable.
jsontoken-readfrom-instream-method|Reads the JSON data from the stream into a JsonToken variable.
SelectToken(Text, var JsonToken)<jsontoken-selecttoken-method>|Selects a JsonToken using a JPath expression.
SelectTokens(Text, var List of [JsonToken])<jsontoken-selecttokens-method>|Selects tokens based on a JPath expression and returns them in a new list.
WriteTo(var Text)<jsontoken-writeto-text-method>|Serializes and writes the JSON data of the JsonToken to a given Text object.
jsontoken-writeto-outstream-method|Serializes and writes the JSON data of the JsonToken to a given OutStream object.
> NOTE
> 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.
## Related information
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

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. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/jsontoken/jsontoken-data-type/
