Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: JSON parsing issue please help

by diamondsandperls (Beadle)
on Sep 29, 2012 at 20:51 UTC ( #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!


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

    Yeah and? What do you want?

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 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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2015-07-05 06:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls