Crate sjson

Source

Structs§

Options
Options represents additional options for the Set and Delete functions.

Enums§

SjsonError

Functions§

delete
Delete deletes a value from json for the specified path.
delete_options
DeleteOptions deletes a value from json for the specified path with options.
set
Set sets a json value for the specified path. A path is in dot syntax, such as “name.last” or “age”. This function expects that the json is well-formed, and does not validate. Invalid json will not panic, but it may return back unexpected results. An error is returned if the path is not valid.
set_bool
Set a boolean value
set_float
Set a float value
set_int
Set an integer value
set_options
SetOptions sets a json value for the specified path with options.
set_raw
SetRaw sets a raw json value for the specified path. This function works the same as Set except that the value is set as a raw block of json. This allows for setting premarshalled json objects.
set_raw_options
SetRawOptions sets a raw json value for the specified path with options.
set_value
Generic Set function that accepts any value that can be serialized to JSON