in reply to Re^3: JSON parsing issue please help
in thread JSON parsing issue please help

The thing im trying to parse on my end is JSON for 120% sure bc someone has parsed this with Ruby and I have seen their code; however, I want to parse this with perl just for the sake of learning.

Rather than getting frustrated and helping just disregard. I believe one replier has already helped in letting me know the elements are in hash form.

Has to be a typo on my end the json i posted is a snapshot of the entire file which I CAN NOT POST bc there is sensitive data in the file and the file is HUGE so posting the entire thing anyway just isn't plausible because I would have to edit the !@#$!@#$ thing!

Replies are listed 'Best First'.
Re^5: JSON parsing issue please help
by james2vegas (Chaplain) on Oct 01, 2012 at 10:00 UTC
    If this someone has parsed this JSON with their own hand-rolled parser in Ruby, then that parser is accepting invalid JSON and should be dumped in favor of one used by other Ruby projects. If this is being parsed by a popular Ruby library, alert the maintainers of that code to the JSON spec (or the RFC) epecially this part:

    array = begin-array [ value *( value-separator value ) ] end-arr +ay
    Notice that it isn't array = begin-array [ *( value value-separator ) ] end array
Re^5: JSON parsing issue please help
by Anonymous Monk on Sep 30, 2012 at 06:26 UTC

    I believe one replier has already helped in letting me know the elements are in hash form.

    Go to http://json.org and look at the diagrams

Re^5: JSON parsing issue please help
by Anonymous Monk on Sep 30, 2012 at 06:24 UTC

    Yeah and? What do you want?