We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
At the moment the meta is not camelcazed. Here is an example:
meta
const normalize = require("json-api-normalizer").default; const json = { data: [], meta: { aggregations: { price_ranges: { doc_count: 19791, price: { buckets: [ {key: "Up to $20", to: 20, doc_count: 5551}, {key: "$20 -- $50", from: 20, to: 50, doc_count: 5591}, {key: "$50 -- $100", from: 50, to: 100, doc_count: 3074}, {key: "$100 -- $300", from: 100, to: 300, doc_count: 2864}, {key: "$300 -- $500", from: 300, to: 500, doc_count: 1090}, {key: "Over $500", from: 500, doc_count: 1565}, ], }, }, }, }, }; const res = normalize(json, { endpoint: "/getjsonapisearch?q=test", }); console.log(res); console.log("------meta:-----"); console.log(JSON.stringify(res.meta, null, 2)); console.log("------Not Camelcazed:-----"); console.log(res.meta["/getjsonapisearch"].meta.aggregations.price_ranges);
The text was updated successfully, but these errors were encountered:
Hey, sorry for delayed response.
I can't fix this easily due to #9
I am going to release version 1.0.0 with a breaking change mentioned in issue above in several days, which will also resolve your issue
Sorry, something went wrong.
Please disregard my comment that I can't fix it easily. Pushing patch in a minute
aa89db5
No branches or pull requests
At the moment the
meta
is not camelcazed.Here is an example:
The text was updated successfully, but these errors were encountered: