-
Notifications
You must be signed in to change notification settings - Fork 41
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
CLI: Json Complex Object outputting all keys as headers #91
Comments
Acknowledged but not expecting immediate reaction without tighter connection to what is the cause. I have an educated guess: The options in the demo, even when blank/default I believe, are still sending those blank/default values which perhaps are being seeing as altering arguments... If you catch my drift above, our goal would be to console log the options in the demo and then exactly send those options in your NodeJs usage. Based on your skill level, if you cloned our gh-pages branch and console logged the options at runtime you could get our answer. The file to edit would be Good luck and may Feb 4th be with you |
Console logged |
edited the code and ran
which matches the default options of
Not sure if this matters but your |
Hmmmmmm, nothing definitive coming from that... It was an educated guess at best but if no answers coming from that than we need more research and debugging |
The loaded file is being consumed as
looking into why, are you happy for me to create a PR once I find a fix? |
Looks like this is the culprit, https://github.com/kaue/jsonexport/blob/master/lib/core/stream.js#L45 I think
can just be
|
By all means. Create the PR please and thank you. It may sit for a little due to schedules and such. I am just acting as front line communications, for this issue, so do not gain expectation of fast action. |
@AckerApple I have had a PR open for a few months now, has this been looked at or put into any kind of roadmap? |
This was news to me, as of just now. I will attempt to review soon. |
Oh hey I recall that now. I see you are getting help. I just contribute where I can here and there |
Yeah, we should be good here @AckerApple :) forgot to check the issues, still have a lot to catch up |
I have a complex JSON object in a file that when running via the CLI outputs the keys as headers
jsonexport complex.json output.csv
complex.json
output.csv
but running it via the online demo page https://kaue.github.io/jsonexport/demo/?json={%22complex%22:{%22object%22:1,%22that%22:2},%22has%22:3,%22nested%22:{%22keys%22:true}}&options={}
it comes out as expected
The text was updated successfully, but these errors were encountered: