Module resymgen::data_formats::json

source ·
Expand description

A JSON symbol table format (.json).

The JSON file contains a single array. Each element is a symbol, and contains the properties “type” (which can be “function” or “data”), “name”, “address” (integer), optional “length” (integer), and optional “description”.

Example

Note: The following example shows pretty-printed JSON for readability. However, the actual output generated by this module will be minified JSON.

[
    {
        "type": "function",
        "name": "main",
        "address": 33554432,
        "description": "the main function"
    },
    {
        "type": "function",
        "name": "function1",
        "address": 37748736
    },
    {
        "type": "data",
        "name": "SOME_DATA",
        "address": 50331647,
        "length": 4
    }
]

Structs

Generator for the .json format.