Hello Monks!
I am trying to send a request to a JSON::RPC server.
One of the parameters is a boolean. I keep getting a malformed Json error.
I've tried a few things and exasperated, I'm asking for thy wisdom!
Thanks in advance!
my $callobj = { "jsonrpc" => "2.0", "id" => 3, method => 'statusTasks2', "params" => { 'history'=>'true', }, };
THE ERROR
{ 'version' => 0, 'content' => { 'jsonrpc' => '2.0', 'error' => { 'data' => 'Invalid JSON was received by the server. An error occurred on the ser +ver while parsing the JSON text.', 'message' => 'Parse error', 'code' => -32700 } }, 'jsontext' => '{"error": {"code": -32700, "data": "Invalid JSON was received by the +server. An error occurred on the server while parsing the JSON text." +, "message": "Parse error" }, "jsonrpc": "2.0" }', 'is_success' => 0 }, 'JSON::RPC::ReturnObject' );
In reply to encoding a boolean in JSON::RPC::Client by bigswifty00000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |