Comments (4)
Hi littlebaycloud,
Could you please elaborate on this, which function are you using and what kind of output you are expecting.
from csvjson.
Okay. I explain more. I tested updated sources. I expected the results like this; [{ "A","BBB"}](with double quotations). But it makes the result like this; [{A,'BBB'}](with single quotation or none). I tried toSchemaObject and others all. The result is same. Previous version is clean and works fine. Would you suggest any idea to figure this out?
from csvjson.
I have tried this example
var csvjson = require("csvjson");
var csv = ["created,contact.name,contact.age+,contact.number+,address[],address[],contact.hobbies[],contact.hobbies[],-id",
"2014-11-12,Pradeep,25,4352436,MG Road,Mumbai,pc games,guitar,5",
"2014-10-06,Arnav,16,7364537,KB Road,Mumbai,pc games,traveling,7"].join('\n');
JSON.stringify(csvjson.toSchemaObject(csv));
and it returns this
[{"created":"2014-11-12","contact":{"name":"Pradeep","age":25,"number":4352436,"hobbies":["pc games","guitar"]},"address":["MG Road","Mumbai"]},{"created":"2014-10-06","contact":{"name":"Arnav","age":16,"number":7364537,"hobbies":["pc games","traveling"]},"address":["KB Road","Mumbai"]}]
could you please share sample code you are trying.
from csvjson.
no activity , hence closing it
from csvjson.
Related Issues (20)
- Comma inside String error HOT 2
- Double quotes in CSV cause error HOT 1
- 'ACL.read.allow.user': 'all', it is not coverting to objects , HOT 1
- TypeError: Cannot read property 'trim' of undefined HOT 2
- Add documentation HOT 1
- Wrong parsing if comma is in cells as well HOT 1
- Partial Header if '-' in key when converting JSON > CSV HOT 1
- Comma missing after the 'delimter' attribute ends in example HOT 1
- What if the input is in the form of string instead of stream? HOT 1
- Line Breaks break Parser HOT 2
- When a string value contains a comma, it gets split into two values HOT 2
- Error while compiling in an Angular application HOT 4
- It is separating cell even a cell has comma inside it
- Add type declaration for typescript
- Double quotes in CSV cause error HOT 2
- How to disable quotes for bool value?
- Breaks in streaming mode HOT 3
- Filter exported fields
- Not able to change objectDenote and arrayDenote to empty strings.
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 csvjson.