php - passing data with cURL post, escaping characters? -


i have post data shown below, i'm trying send curl function, in turn sends data post form.

but when run script, syntax error. believe it's being caused ". normally, escape these using \" or change them ', think cause error when submitted form. how can handle this?

{"potential":[{"id":"b-1_10732423478-6551232102-0-lm-0","marketid":"1.1012336578","selection":6350122,"size":2,"price":2.5,"asian":0,"categorytype":"e","version":2,"limit":0,"marketname":"drive 2013","markettype":"undifferentiated","eventid":"269256462","ordertype":"limit","fractional":{"numerator":null,"denominator":null},"runnerid":"1_105868-6552342-0","transactionid":null,"each":false,"runnerorder":1,"side":"back","inplay":false}],"deduptoken":"1368190973413"} 

the error i'm getting is:

 parse error: syntax error, unexpected 'potential' (t_string) in /applications/mamp/htdocs/curl/index.php on line 16 


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -