Array as return value

58 views
Skip to first unread message

Roger

unread,
Feb 16, 2013, 6:52:37 AM2/16/13
to JSON-RPC
Hi all,

In all the JSON RPC examples and specs I have seen, parameters are
passed as an array whilst the return value is always singular. Is
there any reason why the return value cannot be an array or a tuple?

Matt (MPCM)

unread,
Feb 16, 2013, 7:13:31 PM2/16/13
to json...@googlegroups.com

The return value of the response object can be of any type.

{"jsonrpc": "2.0", "method": "get_data", "id": "9"} 
{"jsonrpc": "2.0", "result": ["hello", 5], "id": "9"}

Reply all
Reply to author
Forward
0 new messages