Fix JSON parsing in rawRequest. Removed exception throwing and pass error info to callback function.