[go: up one dir, main page]

Module sonic_rs::lazyvalue

source ·

Structs

  • A lazied iterator for JSON array.
  • LazyValue is a raw value from json text. Mainly used for get few values from json fastly. LazyValue is only generated when using get for Iterator.
  • A lazied iterator for JSON object.

Functions

  • Returns the raw value from path.
  • Returns the raw value from path.
  • get_from_bytes_unchecked returns the raw value from path.
  • Returns the raw value from path.
  • get_from_bytes_unchecked returns the raw value from path.
  • Returns the raw value from path.
  • get_from_slice_unchecked returns the raw value from path.
  • Returns the raw value from path.
  • get_from_str_unchecked returns the raw value from path.
  • get_many returns the raw value from the PointerTree. The result is a Vec. And the order of the result is the same as the order of the tree. If the tree is empty, it will return the whole json.
  • get_many_unchecked returns the raw value from the PointerTree. The result is a Vec. And the order of the result is the same as the order of the tree. If the tree is empty, it will return the whole json.
  • get_unchecked returns the raw value from path.
  • Convert a json to a lazy ArrayIntoIter. The iterator is lazied and the parsing will doing when iterating. The item of the iterator is a Result. If parse error, it will return Err.
  • Convert a json to a lazy ObjectIntoIter. The iterator is lazied and the parsing will doing when iterating. The item of the iterator is a Result. If parse error, it will return Err.