Git Product home page Git Product logo

json2csv's People

Contributors

danmandle avatar misotrnka avatar trevormorse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

json2csv's Issues

difference between website and PHP example

would love to leverage the tool but I'm having issues with the php example. The website solution is able to convert the json below but the PHP script isn't. Any help would be greatly appreciated

json2csv

hello world :)
i need to convert json google stream data to csv (or xml). here a sample of data:
https://docs.google.com/spreadsheets/d/16TlohLsP0kv-cfoxnDO128ZcS_67rzObzAY4F6gorwg/gviz/tq

at the moment i'm able to create a script which download data to my pc, remove non-json info from header&footer of the stream and convert-it to csv, but the conversion isn't really orthodox :-) (the conversion need all the fields must be populated, not "null" value).
i've noticed that exist a json2csv php script but really don't know how to use it.
i've tryed to run the php script putting the json2csv.php inside www folder of my wamp installation: don't run.

could you show me a solution ?
thx

Getting errors when converting

Hello,
I tried your code to convert a very huge JSON file into a CSV, but I only get these following error messages in the exported CSV file:

Warning: array_keys() expects parameter 1 to be array, null given in D:\XAMPP\htdocs\www\JSON2CSV\json2csv.class.php on line 21
Warning: Invalid argument supplied for foreach() in D:\XAMPP\htdocs\www\JSON2CSV\json2csv.class.php on line 21
Notice: Undefined variable: keys in D:\XAMPP\htdocs\www\JSON2CSV\json2csv.class.php on line 24
Warning: array_merge(): Argument #1 is not an array in D:\XAMPP\htdocs\www\JSON2CSV\json2csv.class.php on line 24
Warning: Invalid argument supplied for foreach() in D:\XAMPP\htdocs\www\JSON2CSV\json2csv.class.php on line 73

The used JSON file seemed to be valid, as JSONlint says.

Can you help me fix this?
Thank you very much in advance.

Best regards,
pyretta

Error while trying to generate CSV

Hi,

Thank you for taking time to develop this code. However, i'm facing the below issue. Could you please advise?

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 158892139 bytes) in /home/centos/JSON2CSV-master/json2csv.class.php on line 15

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.