How do I get information from a JSON file in C? For example the following code in Python
open('simfin.json').read()
var = json.loads(open('simfin.json').read())
var = var["var"]
Gets the value that I gave to a variable and then stores it in var. How do I do it in C, then write it to the .json file, preferably using Jansson?
Here's my .json file:
{
"whenaddrm": "01/01/1970 00:00",
"var": 0,
"moneyaddrm": 0
}