Odin
Odin copied to clipboard
add pretty json output in marshal based on spec + options
adds Marshal_Options to customize the marshal output
can switch between tabs / spaces with use_spaces & spaces >= 1
mjson options for not using quotes & using = instead of :
option to output uint as hex numbers
example using .MJSON
json.marshal(
value,
{
spec = .MJSON,
pretty = true,
write_uint_as_hex = true,
mjson_keys_use_equal_sign = true,
},
)
example using empty options
json.marshal(value, {})