Syck parse error for JSON

Discussion in 'Ruby' started by Gavri Fernandez, Mar 25, 2006.

  1. Hi,
    YAML emits a parse error for

    require 'yaml'
    p YAML::load('{"test":1}')

    because there isn't a space after the colon.

    Is there an option YAML provides that lets me load any JSON? Do I need
    to download and use a JSON parser?

    --
    gavri
    http://purl.oclc.org/NET/gavri
    Gavri Fernandez, Mar 25, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Florian Frank
    Replies:
    0
    Views:
    237
    Florian Frank
    Jun 30, 2009
  2. sajuptpm
    Replies:
    2
    Views:
    323
    sajuptpm
    Dec 28, 2012
  3. Acácio Centeno
    Replies:
    1
    Views:
    248
    dieter
    Feb 15, 2013
  4. Bryan Britten
    Replies:
    9
    Views:
    259
    Bryan Britten
    May 28, 2013
  5. David Karr
    Replies:
    1
    Views:
    160
    David Karr
    Jun 17, 2013
Loading...

Share This Page