Fix copy paste error
Make JSON parse error be handled at higher level.