JsonArray

class ref JsonArray

Constructors

create

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

new iso create(
  len: USize val = seq)
: JsonArray iso^

Parameters

Returns


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

Returns


Public fields


Public Functions

string

Generate string representation of this array.

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

Parameters

  • indent: String val = seq
  • pretty_print: Bool val = seq

Returns


Private Functions

_show

Append the string representation of this array to the provided String.

fun box _show(
  buf': String iso,
  indent: String val = seq,
  level: USize val,
  pretty: Bool val)
: String iso^

Parameters

Returns