JsonArray¶
Constructors¶
create¶
Create an array with zero elements, but space for len elements.
Parameters¶
- len: USize val = 0
Returns¶
- JsonArray ref^
from_array¶
Create a Json array from an actual array.
new ref from_array(
data': Array[(F64 val | I64 val | Bool val | None val | String val | JsonArray ref | JsonObject ref)] ref)
: JsonArray ref^
Parameters¶
- data': Array[(F64 val | I64 val | Bool val | None val | String val | JsonArray ref | JsonObject ref)] ref
Returns¶
- JsonArray ref^
Public fields¶
var data: Array[(F64 val | I64 val | Bool val | None val | String val | JsonArray ref | JsonObject ref)] ref¶
The actual array containing JSON structures.
Public Functions¶
string¶
Generate string representation of this array.
Parameters¶
Returns¶
- String val