json-parser: fixed the newly added code to run