# JsonValue data type
> Version: _Available or changed with runtime version 1.0._
Is a container for any well-formed fundamental JSON value. A default JsonValue is set to the JSON value of NULL.
## Instance methods
The following methods are available on instances of the JsonValue data type.
Method name|Description
jsonvalue-asbiginteger-method|Converts the value in a JsonValue to an BigInteger data type.
jsonvalue-asboolean-method|Converts the value in a JsonValue to a Boolean data type.
jsonvalue-asbyte-method|Converts the value in a JsonValue to a Byte data type.
jsonvalue-aschar-method|Converts the value in a JsonValue to a Char data type.
jsonvalue-ascode-method|Converts the value in a JsonValue to a Code data type.
jsonvalue-asdate-method|Converts the value in a JsonValue to a Date data type.
jsonvalue-asdatetime-method|Converts the value in a JsonValue to a DateTime data type.
jsonvalue-asdecimal-method|Converts the value in a JsonValue to a Decimal data type.
jsonvalue-asduration-method|Converts the value in a JsonValue to a Duration data type.
jsonvalue-asinteger-method|Converts the value in a JsonValue to an Integer data type.
jsonvalue-asoption-method|Converts the value in a JsonValue to an Option data type.
jsonvalue-astext-method|Converts the value in a JsonValue to a Text data type.
jsonvalue-astime-method|Converts the value in a JsonValue to a Time data type.
jsonvalue-astoken-method|Converts the value in a JsonValue to a JsonToken data type.
jsonvalue-clone-method|Creates a deep-copy of the JsonToken value.
jsonvalue-isnull-method|Indicates whether the JsonValue contains the JSON value of NULL.
jsonvalue-isundefined-method|Indicates whether the JsonValue contains the JSON value of UNDEFINED.
jsonvalue-path-method|Retrieves the JSON path of the value relative to its containing tree.
ReadFrom(Text)<jsonvalue-readfrom-string-method>|Reads the JSON data into a JsonValue variable.
jsonvalue-readfrom-instream-method|Reads the JSON data from the stream into a JsonValue variable.
SelectToken(Text, var JsonToken)<jsonvalue-selecttoken-method>|Selects a JsonToken using a JPath expression.
jsonvalue-setvalue-boolean-method|Set the contents of the JsonValue variable to the JSON representation of the given value.
jsonvalue-setvalue-char-method|Set the contents of the JsonValue variable to the JSON representation of the given value.
jsonvalue-setvalue-byte-method|Set the contents of the JsonValue variable to the JSON representation of the given value.
jsonvalue-setvalue-option-method|Set the contents of the JsonValue variable to the JSON representation of the given value.
jsonvalue-setvalue-integer-method|Set the contents of the JsonValue variable to the JSON representation of the given value.
jsonvalue-setvalue-biginteger-method|Set the contents of the JsonValue variable to the JSON representation of the given value.
jsonvalue-setvalue-decimal-method|Set the contents of the JsonValue variable to the JSON representation of the given value.
jsonvalue-setvalue-duration-method|Set the contents of the JsonValue variable to the JSON representation of the given value.
jsonvalue-setvalue-date-method|Set the contents of the JsonValue variable to the JSON representation of the given value.
jsonvalue-setvalue-time-method|Set the contents of the JsonValue variable to the JSON representation of the given value.
jsonvalue-setvalue-datetime-method|Set the contents of the JsonValue variable to the JSON representation of the given value.
SetValue(Text)<jsonvalue-setvalue-string-method>|Set the contents of the JsonValue variable to the JSON representation of the given value.
jsonvalue-setvaluetonull-method|Set the contents of the JsonValue variable to the JSON representation of NULL.
jsonvalue-setvaluetoundefined-method|Set the contents of the JsonValue variable to the JSON representation of UNDEFINED.
WriteTo(var Text)<jsonvalue-writeto-text-method>|Serializes and writes the JSON data of the JsonValue to a given object.
jsonvalue-writeto-outstream-method|Serializes and writes the JSON data of the JsonValue to a given 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/jsonvalue/jsonvalue-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/jsonvalue/jsonvalue-data-type/
