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), optional “description”, and optional “aliases” (array of strings).
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",
"aliases": ["function1_alias1", "function1_alias2"],
"address": 37748736
},
{
"type": "data",
"name": "SOME_DATA",
"address": 50331647,
"length": 4
}
]
Structs
- Generator for the .json format.