bhall2001 / fastjson

A Livecode library for JSON encoding and decoding to and from Arrays.
MIT License
17 stars 11 forks source link

check for balanced {} and [] #20

Closed mwieder closed 8 years ago

mwieder commented 8 years ago

Here's something I ran into today: the isJson() test passed, but I had an incomplete json object, so the {} tags weren't matching up. This adds balancing checks for {} and [] blocks in addition to the existing token validity checks.

bhall2001 commented 8 years ago

Just ran speed tests. The difference in speed is much better than I'd thought it would be. I'm going to add this into the project. Thanks again for the great addition!!!!

bhall2001 commented 8 years ago

I've merged in these changes to the develop branch and am closing this pull request as a result. Thanks for the suggested improvements!