Code Monkey home page Code Monkey logo

Comments (10)

m-prof avatar m-prof commented on June 8, 2024 1

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.

akhilchandran avatar akhilchandran commented on June 8, 2024

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.

kaue avatar kaue commented on June 8, 2024

@m-prof r you using the stream feature from jsonexport?
@akhilchandran i will try to reproduce this later.

from jsonexport.

kaue avatar kaue commented on June 8, 2024

@m-prof can you try again using the branch bugfix/stream-memory-limit?

from jsonexport.

m-prof avatar m-prof commented on June 8, 2024

Thanks! But I am still getting an empty file. You can confirm with the sample file I sent.

from jsonexport.

kaue avatar kaue commented on June 8, 2024

@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.

m-prof avatar m-prof commented on June 8, 2024

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.

kaue avatar kaue commented on June 8, 2024

@m-prof can you try using [email protected]? i just published this version to npm, this should fix your issue

from jsonexport.

kaue avatar kaue commented on June 8, 2024

@m-prof feel free to reopen this issue if this fix does not work for you.

from jsonexport.

m-prof avatar m-prof commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.