ObjectType:jsonvaluecontainer
Revision as of 14:06, 27 March 2018 by Lax (talk | contribs) (Created page with "== Overview == {{ObjectType-Vitals|jsonvaluecontainer|LavishScript|ObjectType:jsonvalue|same as AsString|ObjectType:jsonvaluecontainer|no|void *}} A '''jsonvalue...")
Contents
Overview
jsonvaluecontainer | |
Defined By | LavishScript |
Inherits | ObjectType:jsonvalue |
Reduces To | same as AsString |
Variable Object Type | jsonvaluecontainer |
Uses Sub-Types | no |
C/C++ Type | void * |
A jsonvaluecontainer is a mutable container for a json value
Members
- string AsString: The contained value as a string
- string AsJSON: The contained value as single-line JSON text
- string AsJSON[multiline]: The contained value as multiline JSON text
- ... Value: The contained value
- string Type: The type of JSON object stored; one of: null, object, string, number, array, true, false, integer. Note that while the JSON standard does not differentiate between floating-point numbers and integers, LavishScript does
Methods
- SetValue[json]: Sets the contained json value, e.g. myJsonValueContainer:SetValue["{\"someValue\":17}"] will set myJsonValueContainer's value to a jsonobject that in turn contains one value
- ParseFile[filename]: Sets the contained json value to the contents of a specified json file