Yes to your question. The values of parameters, named or otherwise can
be anything that is valid json. Of course the server gets to decide
what it is going to accept and handle.
But, what you posted was not valid json (or json-rpc). If you meant
something like the below:
{
"jsonrpc" : "2.0",
"id": 1,
"method" : "example",
"params" : {
"array" : [0,1,2,3],
"number": 3
}
}
Then that is a valid request object, calling "example" and passing two
named parameters, one called "array" which also has an array value,
and one called number which is passing the value of 3.
Hope that helps clarify.
--
Matt (MPCM)