Comments (10)
I am just using the basic command listed on the main page (http://kauegimenes.github.io/jsonexport/),
jsonexport <JSON filename> <CSV filename>
.
Gives me an empty file. Is there an option I should be using?
For reference I attach a sample file.
sample.zip
from jsonexport.
I am having same Issue, When using stream, Also found that issue is with
if (self._extra.length > chunk.toString().length * 3) return null;// lib/core/stream.js
It happens for last chunk which happen to be at the smaller than the last stored json part.
from jsonexport.
@m-prof r you using the stream feature from jsonexport?
@akhilchandran i will try to reproduce this later.
from jsonexport.
@m-prof can you try again using the branch bugfix/stream-memory-limit
?
from jsonexport.
Thanks! But I am still getting an empty file. You can confirm with the sample file I sent.
from jsonexport.
@m-prof i did test with the sample you provided and got a csv with 322 lines.
try this:
git checkout bugfix/stream-memory-limit
./bin/jsonexport.js sample.json output.csv
from jsonexport.
OK good it is something on my end! Are you doing this within Windows 10?
I am not sure how to execute those commands you mentioned within Win 10 (e.g. if try jsonexport.js sample.json output.csv
I get a microsoft jscript compilation error
from jsonexport.
@m-prof can you try using [email protected]
? i just published this version to npm, this should fix your issue
from jsonexport.
@m-prof feel free to reopen this issue if this fix does not work for you.
from jsonexport.
Thanks so much kaue! This works now for me, for all files I checked. I have a speed question which I I am posting in a new thread: #75
from jsonexport.
Related Issues (20)
- Stream does not support typeHandlers option HOT 3
- How to remove the title option from inside xls file
- Nested JSONObject not correctly mapping to csv
- Update v2.5.2 to v2.5.3 with Bug Fixes for package.json stuck on v2
- verticalOutput with Arrays HOT 1
- No option to ignore fields / limit fields to export ? HOT 2
- (I think I) found a bug HOT 6
- typeHandlers tests & more samples
- speed question/issue HOT 4
- Column values with zero (0) are being replaced with "" HOT 3
- Complex JSON array - unexpected behavior HOT 1
- Need Help : Complex Json Array to CSV HOT 2
- Json Complex Example HOT 2
- JSON Array not converting to CSV HOT 1
- TypeError: this._options.handleDate is not a function HOT 5
- Question. What is expected behaviour when exporting objects where some do not have all fields in header HOT 12
- typeHandlers is not part of UserOptions HOT 2
- CLI: Json Complex Object outputting all keys as headers HOT 11
- Exporting a dataset with a hashtag (#) in a string breaks CSV HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsonexport.