4 ms·
Yes and with obiwan you can pass that structure to data = json.loads(tainted, template=your_spec) And that will throw an exception if the JSON didn't matc
by willvarfar 10y ago
Yes and with obiwan you can pass that structure to
data = json.loads(tainted, template=your_spec)
And that will throw an exception if the JSON didn't match the template. From then on its just to safely use the JSON you just loaded, knowing it is well formed and matches the expected shape... :)