GithubHelp home page GithubHelp logo

Comments (4)

pradeep-mishra avatar pradeep-mishra commented on July 28, 2024

Hi littlebaycloud,

Could you please elaborate on this, which function are you using and what kind of output you are expecting.

from csvjson.

littlebaycloud avatar littlebaycloud commented on July 28, 2024

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.

pradeep-mishra avatar pradeep-mishra commented on July 28, 2024

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.

pradeep-mishra avatar pradeep-mishra commented on July 28, 2024

no activity , hence closing it

from csvjson.

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.