why ”86:00.0“ change to “ 5160.0”,and how to solve this problem? thanks

Issue #484 invalid
黄波杰 created an issue
Yaml yaml = new Yaml();
String  yamlStr = "value:\n"
   + "        - {a: 'b', c: 86:00.0}\n";
LinkedHashMap<String, Object> map = yaml.loadAs(yamlStr, LinkedHashMap.class);
System.out.println( ((Map)((List)map.get("value")).get(0)).get("c") );

show result

5160.0

Process finished with exit code 0

Comments (4)

  1. 黄波杰 reporter

    thanks, now I extend Resolver class and remove int and float tag, I want to all value define as string type.😀

  2. Log in to comment