![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Replace a string that contains special charactersby stevieb (Canon) |
on Mar 21, 2017 at 16:09 UTC ( [id://1185366]=note: print w/replies, xml ) | Need Help?? |
That's some JSON data that is, with an extra } at the end. Here's an example of how you can load that JSON data as a Perl data structure, then delete items from it, by name, then re-encode the data structure back into a JSON string. Note it's an array reference of hash references:
Output:
In Section
Seekers of Perl Wisdom
|
|