glome/core/json

Functions

pub external fn decode(String) -> Dynamic
pub external fn encode(anything) -> String
pub fn get_field_as_string(value: Dynamic) -> Result(
  String,
  GlomeError,
)
pub fn get_field_by_path(data: Dynamic, path: String) -> Result(
  Dynamic,
  GlomeError,
)
pub fn json_element(key: String, value: a) -> #(String, a)
pub fn string_field(data: String, field_name: String) -> Result(
  String,
  GlomeError,
)