Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] multi-format support #44

Open
hh9527 opened this issue Feb 10, 2022 · 1 comment
Open

[feature request] multi-format support #44

hh9527 opened this issue Feb 10, 2022 · 1 comment

Comments

@hh9527
Copy link

hh9527 commented Feb 10, 2022

I found xq use serde as its deserializer, so it is possible to support other format beside json (yaml for example).

cat a.yaml | xq --fmt yaml
cat b.data | xq --fmt msgpack

and one more step, support schemaless data with additional schema

cat b.bin | xq --fmt bincode --schema my-bincode-schema.json --schema-fmt json
@MiSawa
Copy link
Owner

MiSawa commented Feb 10, 2022

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.

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!

@MiSawa MiSawa mentioned this issue Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants