But I got the error :
'"' expected, at character offset 1 (before "Id:'3434104667044175...") at C:/str
awberry/perl/site/lib/JSON.pm line 154.
I tried to replace ' with " but it don't works...
Comment on JSON error '"' expected, at character offset 1
JSON expects double quotes. So, replacing the double quotes should work. Maybe you care to show us the code you used to replace the single quotes with double quotes?
Thanks but I can't use JS in my program.
I Easly replaced every single quotes by double quotes with
$response =~ s/'/"/g;
Now how can I do with a regex :
Quote every unquoted characteres beetween { or , or : and
{ or , or :
Can I capture matching string with ( ) and use it in the replace part of the regex with quote around ?
I tried with