Dagger.JSONValue (dagger v0.19.4)
View SourceDagger.JSONValue
Summary
Functions
Decode an array from json
Decode a boolean from json
Decode an integer from json
Decode a string from json
Return the value encoded as json
Lookup the field at the given path, and return its value.
List fields of the encoded object
A unique identifier for this JSONValue.
Encode a boolean to json
Encode an integer to json
Encode a string to json
Return a new json value, decoded from the given content
Set a new field at the given path
Types
Functions
Decode an array from json
Decode a boolean from json
Decode an integer from json
Decode a string from json
@spec contents(t(), pretty: boolean() | nil, indent: String.t() | nil) :: {:ok, Dagger.JSON.t()} | {:error, term()}
Return the value encoded as json
Lookup the field at the given path, and return its value.
List fields of the encoded object
@spec id(t()) :: {:ok, Dagger.JSONValueID.t()} | {:error, term()}
A unique identifier for this JSONValue.
Encode a boolean to json
Encode an integer to json
Encode a string to json
@spec with_contents(t(), Dagger.JSON.t()) :: t()
Return a new json value, decoded from the given content
Set a new field at the given path