Guest User

Untitled

a guest
Nov 18th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. I get this error whenever I try to curl this CureBit JSON:
  2.  
  3. JSON::ParserError (757: unexpected token at '{"referred"=>{"customer_id"=>"91", "email"=>"[email protected]"}, "referrer"=>{"customer_id"=>"9", "email"=>"[email protected]"}}'):
  4. app/controllers/referrals_controller.rb:5:in `create'
  5. -----------------------------
  6.  
  7. When I change the JSON manually to this, the error no longer occurs:
  8. {"referred":{"customer_id":"98", "email":"[email protected]"}, "referrer":{"customer_id":"9", "email":"[email protected]"}}
  9.  
  10. -----------------------------
  11. Is there a way to do this automatically?
Add Comment
Please, Sign In to add comment