Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Functions JsonBuilder.putArrayValue

1
2
3
4
5
6
7
module juptune.data.json.builder;

Result putArrayValue(
    ItemT
)(
    ItemT value
);

Documentation

Puts a value within the current array.

Notes

Please see the main JsonBuildercomment for information on how valueis handled.

Params

Throws

JsonBuilderError.noDepthif the depth buffer is empty.

JsonBuilderError.wrongDepthif the latest depth was created by an object instead of an array.

Anything that the provided sink can throw.

If ItemTis a string, then anything that juptune.data.utf8.utf8DecodeNextcan throw.

Returns

A Resultindicating whether any errors occurred.