W3cubDocs

/Pony

_JsonPrint

[Source]

primitive val _JsonPrint

Constructors

create

[Source]

new val create()
: _JsonPrint val^

Returns

Public Functions

eq

[Source]

fun box eq(
  that: _JsonPrint val)
: Bool val

Parameters

Returns

ne

[Source]

fun box ne(
  that: _JsonPrint val)
: Bool val

Parameters

Returns

Private Functions

_indent

[Source]

Add indentation to the buf to the appropriate indent_level

fun box _indent(
  buf: String iso,
  indent: String val,
  level': USize val)
: String iso^

Parameters

Returns

_string

[Source]

Generate string representation of the given data.

fun box _string(
  d: (F64 val | I64 val | Bool val | 
    None val | String val | JsonArray box | 
    JsonObject box),
  buf': String iso,
  indent: String val,
  level: USize val,
  pretty: Bool val)
: String iso^

Parameters

Returns

_escaped_string

[Source]

Generate a version of the given string with escapes for all non-printable and non-ASCII characters.

fun box _escaped_string(
  buf: String iso,
  s: String val)
: String iso^

Parameters

Returns

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