/ LJCJSCodeDoc / LJCCommonLib / LJC / ParseJSON


Parameters
json - The json text.

Returns

The parsed object.

Syntax

JavaScript
static ParseJSON(json)

Parses JSON into an object.

Example

JavaScript
// Parses JSON into an object.
ParseJSON()
{
  const json = "{\"Name\":\"First\",\"Sequence\":1}";
  const object = LJC.ParseJSON(json);
  const result = object.Name;

  // result:
  // "First";
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.