text2json

Function text2json 

Source
pub fn text2json(data_string: &str) -> Result<Value, Error>
Expand description

Converts a JSON string into a serde_json::Value.

§Arguments

  • data_string - A string slice containing JSON data.

§Returns

A Result containing the parsed JSON value or an error if parsing fails.