I want to be able pass to my server a GET request suh as:
http://example.com/?a[foo]=1&a[bar]=15&b=3
And when I get the query param 'a', it should be parsed as HashMap like so:
{'foo':1, 'bar':15}
EDIT: Ok, to be clear, here is what I am trying to do, but in Java, instead of PHP:
Pass array with keys via HTTP GET
Any ideas how to accomplish this?
You can pass JSON Object as String by appending it to URL. But befor that you need to encode it you can use the method given in this link http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_encodingUtil.htm for encoding and then just append the json object as any other string
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With