Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I get this error whenever I try to curl this CureBit JSON:
- JSON::ParserError (757: unexpected token at '{"referred"=>{"customer_id"=>"91", "email"=>"eee@eee.com"}, "referrer"=>{"customer_id"=>"9", "email"=>"aaa@aaa.com"}}'):
- app/controllers/referrals_controller.rb:5:in `create'
- -----------------------------
- When I change the JSON manually to this, the error no longer occurs:
- {"referred":{"customer_id":"98", "email":"eee@eee.com"}, "referrer":{"customer_id":"9", "email":"aaa@aaa.com"}}
- -----------------------------
- Is there a way to do this automatically?
Add Comment
Please, Sign In to add comment