JsonArray
class ref JsonArray
Constructors
create
Create an array with zero elements, but space for len elements.
new ref create( len: USize val = 0) : JsonArray ref^
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.
fun box string( indent: String val = "", pretty_print: Bool val = false) : String val
Parameters
Returns
- String val
© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/json-JsonArray