Add enough JSON parser to fix errors