Mojo function
loads
loads(text: String) -> JSONValue[text]
Parses the given JSON text into a JSONValue.
This function takes a JSON string and returns a structured representation as a JSONValue object.
Args:
- text (
String
): The JSON text to parse.
Returns:
A JSONValue representing the parsed JSON.
Raises:
Error: If the JSON is invalid.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!