rapidyaml: Parse error on very simple json document

As I understand it, yaml is a superset of json, but rapidyml throws an error when trying to parse this very simple document

#include <ryml.hpp>
int main() {
    ryml::Tree t = ryml::parse("{\"a\":\"b\"}");
}

Output:

ERROR parsing yml: parse error
line 1: '{"a":"b"}' (sz=9)
             ^~~~~  (cols 5-10)

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 21 (21 by maintainers)

Commits related to this issue

Most upvoted comments

By the way, the new error callback parameter “Location” is great!