JsonArray

[Source]

class ref JsonArray

Constructors

create

[Source]

Create an array with zero elements, but space for len elements.

new ref create(
  len: USize val = 0)
: JsonArray ref^

Parameters

Returns

from_array

[Source]

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

Returns

Public fields

var data: Array[(F64 val | I64 val | Bool val | None val | String val | JsonArray ref | JsonObject ref)] ref

[Source]

The actual array containing JSON structures.

Public Functions

string

[Source]

Generate string representation of this array.

fun box string(
  indent: String val = "",
  pretty_print: Bool val = false)
: String val

Parameters

  • indent: String val = ""
  • pretty_print: Bool val = false

Returns

© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/json-JsonArray