Currently, Facebook API is delivering an array to me in this specific format:
to[0]=10100811338393761,to[1]=10100919262065481,...
I'm wondering if anyone has any ideas on how I can convert that into a JSON array using JavaScript?
Edit: To provide further clarity...
Facebook sends back an array of users who have received requests through the callback URL (view documentation here). It's returned in a URI format like so:
to%5B0%5D=10100811338393761....
After cleaning it up using decodeURIComponent, the code snippet I've shared is what remains.
My goal is to parse this into a JSON object to access the IDs, but whenever I attempt to use JSON.parse, I encounter errors ("unexpected [" or "unexpected =").