mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +01:00
6c485625f4
The example reads a file as JSON, adds a key, then writes the new structure to a JSON file in the build folder. The example accepts a '--pretty' argument to output human readable JSON to the file.
10 lines
142 B
JSON
10 lines
142 B
JSON
{
|
|
"array": [1, 2, "abc", 4.8, null],
|
|
"dict": {
|
|
"integer": 1,
|
|
"float": 4.8,
|
|
"string": "Hello, world!"
|
|
},
|
|
"boolean": true
|
|
}
|