Problems? Is your data what you think it is? | |
PerlMonks |
Re: tidy up json via perlby Trizor (Pilgrim) |
on Jul 18, 2007 at 16:40 UTC ( [id://627300]=note: print w/replies, xml ) | Need Help?? |
You may want to simply read and then write out the JSON using JSON or JSON::Syck to handle the parsing and re formatting for you. Unless you have malformed JSON one of those modules will be able to help you. If you can write your tidy system in a general enough way and say call it "jsontidy" you might consider sending it to the module author to include with the next release.
In Section
Seekers of Perl Wisdom
|
|