Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: JSON parsing issue please help

by diamondsandperls (Beadle)
on Sep 29, 2012 at 20:51 UTC ( [id://996422]=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://996422]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-18 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found