Reading ruby serialized YAML

2009-11-10
2013-04-09
  • Nobody/Anonymous

    Hi I have the following Ruby Serialized YAML and the parser doesn't seem to pick it up correctly. I'm convinced that is Rubys fault as they have not put spaces in the list. Can any one help?

    --
    end_date: 2009-11-10 23:59:59
    start_date: 2009-11-09 0:00:00
    vehicles:
    - 261
    - 271
    - 461
    - 471

    The problem is reading in the vehicles as an array. Place a space before them and everything is fine. Is it the parser or Ruby and how could I get the parser to read this properly? Note that this content may change.

    Thanks, Dan

     
  • Nobody/Anonymous

    I had the same problem long time ago. I ended up using org.jvyaml

    jvyaml parses yaml generated by ruby correctly.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks