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
- Re #52: add preprocessing of invalid JSON to make it parseable — committed to biojppm/rapidyaml by biojppm 4 years ago
- Re #52: add preprocessing of invalid JSON to make it parseable — committed to biojppm/rapidyaml by biojppm 4 years ago
- re #52: add documentation for preprocessing functions — committed to biojppm/rapidyaml by biojppm 4 years ago
- re #52: fix include guard for preprocess.hpp — committed to biojppm/rapidyaml by biojppm 4 years ago
- re #52: fixes fail on json preprocessing — committed to biojppm/rapidyaml by biojppm 4 years ago
- re #52: fixes fail on json preprocessing — committed to biojppm/rapidyaml by biojppm 4 years ago
- re #52: fixes fail on json preprocessing Merge pull request #62 from biojppm/issue52 — committed to biojppm/rapidyaml by biojppm 4 years ago
- Revert "re #52: fixes fail on json preprocessing" — committed to biojppm/rapidyaml by biojppm 4 years ago
- re #52: null is also a valid JSON literal — committed to biojppm/rapidyaml by biojppm 4 years ago
By the way, the new error callback parameter “Location” is great!