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.putObjectValue

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

Result putObjectValue(
    ItemT
)(
    const char[] key, 
    ItemT value
);

Documentation

Puts a value with the specified key within the current object.

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 array instead of an object.

Anything that the provided sink can throw.

Anything that juptune.data.utf8.utf8DecodeNextcan throw.

Returns

A Resultindicating whether any errors occurred.