Open hh9527 opened 2 years ago
it is possible to support other format beside json (yaml for example).
Yeah that's actually why xq
is prefixed by x
instead of j
. Though I neglected this for quite a while since it has a limitation (it has to have multi-document support) and I don't know each format enough.
serde_yaml
supports multidoc deserialization so it should be easy to support YAMLs.rmp-serde
(stands for Rust Message Pack) on the other hand doesn't have support for multidoc deserialization yet.and one more step, support schemaless data with additional schema
Passing schema for schemaless data is a great idea! It'll have the same limitation with above, but resolves the fundamental issue!
I found xq use serde as its deserializer, so it is possible to support other format beside json (yaml for example).
and one more step, support schemaless data with additional schema