Difference between revisions of "ObjectType:jsonobject"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
{{ObjectType-Vitals|jsonobject|[[LavishScript]]|[[ObjectType:jsonvalue]]|same as ToString|jsonvaluecontainer|no|void *}}
+
{{ObjectType-Vitals|jsonobject|[[LavishScript]]|[[ObjectType:jsonvalue]]|same as ToString|none|no|void *}}
  
 
A '''jsonobject''' is a standard [https://www.json.org/ JSON] object.
 
A '''jsonobject''' is a standard [https://www.json.org/ JSON] object.

Revision as of 13:50, 27 March 2018

Overview

Object Type Vitals
jsonobject
Defined By LavishScript
Inherits ObjectType:jsonvalue
Reduces To same as ToString
Variable Object Type none
Uses Sub-Types no
C/C++ Type void *

A jsonobject is a standard JSON object.

Members

  • ... Get[valueName]: Gets a value stored within this object, by its name
  • ... Get[valueName,valueName2,...]: Gets a stored value multiple levels deep within jsonobjects and/or jsonarrays

Methods

  • Clear: Clears all values from the object
  • Set[valueName,json]: Sets a value within the object, to a new JSON value of any type, e.g. myJsonObject:Set["someObject","{\"subValue\":12}"]
  • GetIterator[jsoniterator]: Sets a jsoniterator to iterate this JSON object

See Also