Module: skyring/lib/json

JSON helpers


(require("skyring/lib/json"))(json)

Wrpper around try/catch of JSON parsing

Parameters:
Name Type Description
json String

A JSON string to parse

Source:
Returns:
Type
module:skyring/lib/json~Result

Type Definitions


Result

Composite JSON ojbect

Type:
  • Object
Properties:
Name Type Argument Default Description
error Error <optional>
<nullable>
null

An error if json parsing faile

value Object

the result of Json parsing

Source: