views:

5

answers:

0

Hi everyone!

Has anyone else had a problem with JYaml 1.3 where on Yaml.load it is casting a number (like 102) as an Integer, even if you put it in quotes? For example, here's a small snippet from my yaml file:

.
.
.
listValues: 
      "102": Joe
      "101": John
.
.
.

The 102 and 101 get constructed into the object created by Yaml.load as Integers, despite those quotes. I have tried:

  1. Single quotes
  2. !!str
  3. !str
  4. ? !str
  5. ? "102"
  6. ? '102'

I am starting to wonder if JYaml has a bug, so I am just reaching out to see if anyone else ran into this.

Thanks!