/ LJCJSCodeDoc / LJCCommonLib / LJC / CreateJSON


Parameters
value - A supplied object value.

Returns

The JSON text.

Syntax

JavaScript
static CreateJSON(value)

Creates JSON from the provided value.

Example

JavaScript
// Creates JSON from the provided value.
CreateJSON()
{
  let object = {};
  object.Name = "First";
  object.Sequence = 1;
  const result = LJC.CreateJSON(object);

  // result:
  // {\"Name\":\"First\",\"Sequence\":1}
}

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