Fix parse json
Fix parseJSON to return object with error