in reply to Perl script not working with JSON module

Ankur_kuls:

In addition to the error that GotToBTru noted, the part of the JSON you *do* show also has errors: you're missing commas between the } and { (i.e., at the ends of the lines)--assuming that you're in an array of hashes. (Though I can't imagine what else it would be.)

I'd suggest talking to the provider of this "JSON" data, and have them provide you actual JSON data.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: Perl script not working with JSON module

Replies are listed 'Best First'.
Re^2: Perl script not working with JSON module
by Anonymous Monk on Jul 24, 2015 at 09:51 UTC

    Hi.. thanks for help. I have resolved the issue now. Earlier I thought that issue lies within line number 193. Then I decoded each line in while loop with "$." which gave me the malformed record number where the script terminated. thanks roboticus, gottobtru and anonymous Monk for your time & help.