Training
Module
Store and Retrieve JSON Files - Training
Learn how to serialize and deserialize JavaScript Object Notation (JSON) strings using the JsonSerializer class, the JsonSerializerOptions class, and Data Transfer Objects.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Json.FromValue(value as any, optional encoding as nullable number) as binary
Produces a JSON representation of a given value value
with a text encoding specified by encoding
. If encoding
is omitted, UTF8 is used. Values are represented as follows:
#infinity
, -#infinity
and #nan
are converted to nullConvert a complex value to JSON.
Usage
Text.FromBinary(Json.FromValue([A = {1, true, "3"}, B = #date(2012, 3, 25)]))
Output
"{""A"":[1,true,""3""],""B"":""2012-03-25""}"
Training
Module
Store and Retrieve JSON Files - Training
Learn how to serialize and deserialize JavaScript Object Notation (JSON) strings using the JsonSerializer class, the JsonSerializerOptions class, and Data Transfer Objects.
Documentation
Learn more about: Json.Document
Text.FromBinary - PowerQuery M
Learn more about: Text.FromBinary
Binary.FromText - PowerQuery M
Learn more about: Binary.FromText