Throw an exception instead of silently dying
Fix off-by-one error that prevented parsing of {"\"\""}
Merge pull request #1 from sergiosgc/master

Two minor bugs corrected