Skip to main content
Log in

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.