4 ms·
Is it supposed to work with any JSON? I tried inputting the following but nothing happens: {"id":"0001","type":"donut","name":"Cake","ppu":0.55,"batters":{"b
by ggerganov 6y ago
Is it supposed to work with any JSON? I tried inputting the following but nothing happens:
{"id":"0001","type":"donut","name":"Cake","ppu":0.55,"batters":{"batter":[{"id":"1001","type":"Regular"},{"id":"1002","type":"Chocolate"},{"id":"1003","type":"Blueberry"},{"id":"1004","type":"Devil's Food"}]}}
Maybe add some error indicator when it fails to parse?
Edit: Ah, it looks like it does not like floats/integers. I had to remove the "ppu":0.55 entry. Also, leading spaces at the start of the JSON also seem to confuse it.
Anyway - good job!