1. 0.3.0
    2. 0.2.2


    Efficiently parse and decode JSON in pure Swift.

    import JSON

    The JSON module provides various rules for parsing JSON messages, and an expressive, lightweight set of tools for decoding parsed messages into Swift structures. Unlike the monolithic Foundation.JSONDecoder, JSON vends atomized, composable interfaces that can be adapted and optimized for a variety of use-cases.

    To minimize namespace pollution, most of this module’s API lives under the JSON enumeration.

    This module re-exports the Grammar module from swift-grammar.



    • enum JSON

      A JSON variant value. This value may contain a fragment, an array, or an object.