I wonder if the script created by the author would go through edge cases of JSON, like escaped characters. I doubt and this sounds like a famous joke to me:
Do you wanna hear a joke?
Parsing XML with regexp
I did it too. But this was nightmare