JsonObject¶
Constructors¶
create¶
Create a map with space for prealloc elements without triggering a resize. Defaults to 6.
Parameters¶
- prealloc: USize val = 6
Returns¶
- JsonObject ref^
from_map¶
Create a Json object from a map.
new ref from_map(
data': HashMap[String val, (F64 val | I64 val | Bool val | None val | String val | JsonArray ref | JsonObject ref), HashEq[String val] val] ref)
: JsonObject ref^
Parameters¶
- data': HashMap[String val, (F64 val | I64 val | Bool val | None val | String val | JsonArray ref | JsonObject ref), HashEq[String val] val] ref
Returns¶
- JsonObject ref^
Public fields¶
var data: HashMap[String val, (F64 val | I64 val | Bool val | None val | String val | JsonArray ref | JsonObject ref), HashEq[String val] val] ref¶
The actual JSON object structure,
mapping String
keys to other JSON structures.
Public Functions¶
string¶
Generate string representation of this object.
Parameters¶
Returns¶
- String val