Json:
{
"Herausgeber": "Xema",
"Nummer": "1234-5678-9012-3456",
"Deckung": 2e+6,
"Waehrung": "EURO",
"Inhaber": {
"Name": "Mustermann",
"Vorname": "Max",
"maennlich": true,
"Hobbys": [ "Reiten", "Golfen", "Lesen" ],
"Alter": 42,
"Kinder": [],
"Partner": null
}
}
Is there a quick way to evaluate this like in javascript, so you can have a python 2.7 object by simple evaluating a full textfile in JSON-Format?
So you have something like:
file = read('text.json')
obj = eval(file)