Skip to main content
Log in

Mojo module

parser

A simple, high‐performance JSON parser in pure Mojo.

This module provides functionality for parsing JSON strings into structured data types and serializing them back to JSON format.

Structs

  • JSONDict: Represents a JSON object as a dictionary of string keys to JSON values.
  • JSONList: Represents a JSON array as a list of JSON values.
  • JSONParser: A parser for JSON text.
  • JSONValue: Represents a JSON value of any type (null, boolean, number, string, array, or object).

Functions

  • loads: Parses the given JSON text into a JSONValue.