Class JSONValue

A JSON-encoded value, which may be a primitive value, an array or an object.

Examples:

null
true
false
42
"a string"
[ 1, 2, 3 ]
{ "value": 0 }

Import path

import javascript

Direct supertypes

Indirect supertypes

Known direct subtypes

Predicates

getChild

Gets the ith child value of this value.

getJsonFile

Gets the JSON file containing this value.

getLocation

Gets this element’s location.

getParent

Gets the parent value to which this value belongs, if any.

isTopLevel

Holds if this JSON value is the top level element in its enclosing file.

toString

Gets a textual representation of this element.

Inherited predicates

getEndLine

Gets the line on which this element ends.

from Locatable
getFile

Gets the file this program element comes from.

from Locatable
getNumLines

Gets the number of lines covered by this element.

from Locatable
getStartLine

Gets the line on which this element starts.

from Locatable