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

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. Bermejo, Rodrigo (GEAE, Foreign National)

    syck compiling error on HPUX - aCC

    Bermejo, Rodrigo (GEAE, Foreign National), Aug 16, 2003, in forum: Ruby
    Replies:
    1
    Views:
    203
    Bermejo, Rodrigo
    Aug 18, 2003
  2. Jonathan Rochkind

    JSON.parse and unicode escape?

    Jonathan Rochkind, Aug 27, 2008, in forum: Ruby
    Replies:
    3
    Views:
    814
    Pascal Wever
    Oct 1, 2008
  3. Florian Frank
    Replies:
    0
    Views:
    457
    Florian Frank
    Jun 30, 2009
  4. Rahul Mehta

    JSON.parse error

    Rahul Mehta, Aug 2, 2010, in forum: Javascript
    Replies:
    2
    Views:
    197
    Asen Bozhilov
    Aug 2, 2010
  5. sajuptpm
    Replies:
    2
    Views:
    698
    sajuptpm
    Dec 28, 2012
  6. Acácio Centeno
    Replies:
    1
    Views:
    608
    dieter
    Feb 15, 2013
  7. Bryan Britten
    Replies:
    9
    Views:
    524
    Bryan Britten
    May 28, 2013
  8. David Karr
    Replies:
    1
    Views:
    328
    David Karr
    Jun 17, 2013
Loading...