dominictarr/JSON.sh — pull request #3 by medgar123 (2011-10-25 23:03:41+00:00)
Title: I made some fixes, if you like.

Tokenizer changes:
* split up the tokenizer regex for readability
* ignore inter-token whitespace
* allow backslash-escapes in strings
* disallow control characters in strings
* clean up number regex and don't allow . (or the empty string)
* fall-through token-matching case is . leaving the parser to validate it.

Parser changes:
* disallow non-string keys in objects
* detect unrecognized tokens, e.g. @ A $ etc.
* consistent quoting on case patterns
* use ${token:-EOF} in error messages

fixed wrong tests (and removed the wrong-test-generator)
added new tests.
fix test/valid-test.sh to count failures like test/invalid-test.sh
removed unnecessary outlog/errlog files (and add to .gitignore)