Subject: | double quotes on numeric value in JSON format |
Date: | Sat, 27 Feb 2016 02:23:20 +0200 |
To: | bug-JSON-RPC [...] rt.cpan.org |
From: | Den <denisix [...] gmail.com> |
Hi,
I have found that JSON::RPC::Client doesnt work with bitcoin node, after
4 hours of debugging I've found that the issue on JSON format:
$content =
[{"params":["acc1","acc2","0.0001"],"version":1.1,"method":"move"}]
but the correct one should be:
$content =
[{"params":["acc1","acc2",0.0001],"version":1.1,"method":"move"}]
to remove double quotes i've prepared patch for file "Client.pm":
Client.pm.patch:
146a147,149
Show quoted text
> # remove double quotes from numeric values
> $content =~ s/\"([\d\.\+\-e]+)\"/$1+0/ge;
>
Please fix this.
Thank you.
--
Regards,
Den