A simple JSON parser for Picotron!
I think someone else uploaded one of these. But the more the merrier, right?
Currently the web version doesn't do anything. But if you load it and run it from the terminal, it'll run through some test cases and print out the results. (Not sure how to get it to do that on web - if anyone knows, I'm all ears!)
Limitations:
- Escape characters in strings not supported
- Exponents in numbers not supported
- Null values in arrays are excluded from the array - a limitation of
table.insert
. But nulls do weird things to arrays anyway, so maybe that's a good thing?
[Please log in to post a comment]