How can I generate this JSON acording to RPC 2.0 standard?
{"jsonrpc":"2.0","method":"authenticate","params":{"serviceName":"MyServiceName","serviceKey":"3456789876543234567uyfde6765","user":"xxx.yyyy@gmail.com","password":"KJSksk78SW"}, "id": "3"}
How can I generate this JSON acording to RPC 2.0 standard?
{"jsonrpc":"2.0","method":"authenticate","params":{"serviceName":"MyServiceName","serviceKey":"3456789876543234567uyfde6765","user":"xxx.yyyy@gmail.com","password":"KJSksk78SW"}, "id": "3"}
If you're using iOS 5.0, you can use the NSJSONSerialization class to do the work for you.
Here's Apple's documentation for it: