ObjectType:jsonarray

From Lavish Software Wiki
Revision as of 13:54, 27 March 2018 by Lax (talk | contribs) (Created page with "== Overview == {{ObjectType-Vitals|jsonarray|LavishScript|ObjectType:jsonvalue|same as ToString|none|no|void *}} A '''jsonarray''' is a standard [https://www.json.org...")
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to navigation Jump to search

Overview

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

A jsonarray is a standard JSON array.

Members

  • ... Get[#]: Gets a value stored within this object, by its index (1-based)
  • ... Get[#,valueName2,...]: Gets a stored value multiple levels deep within jsonarrays and/or jsonobjects
  • uint Size: Allocated capacity of the array
  • uint Used: Total number of values currently in the array

Methods

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

See Also