Module json

Overview

Module for processing JSON.

Examples

let object = #{"number": 42, "string": "Hello World"};
let object = json::from_string(json::to_string(object)?)?;
assert_eq!(object, #{"number": 42, "string": "Hello World"});

Structs

Error

Error type raised during JSON serialization.

Functions

from_bytes

Convert JSON bytes into a rune value.

from_string

Convert a JSON string into a rune value.

to_bytes

Convert any value to json bytes.

to_string

Convert any value to a json string.