How to get a line from one json file and another from a different json file using node.js

I am trying to combine lists of information from different .txt files. Example: (text1.txt): type1 type2 type3 (text2.txt): variable1 variable2 variable3 I want the program to give me something like this: (I can set the separator character but I will use ‘:’ for the example) type1:variable1 type1:variable2 type1:variable3 type2:variable1 type2:variable2 type2:variable3 type3:variable1 type3:variable2 type3:variable3 Does…

how to convert JSON to Datatable(JSON contains one array column empty value and sub document value)

Github API hit json conversion to datatable. Following is the sample json data: [{“id”:132,”description”:””,”name”:”dctraklite_vellore”,”name_with_namespace”:”cM Source Admin / dctraklite_vellore”,”path”:”dctraklite_vellore”,”path_with_namespace”:”root/dctraklite_vellore”,”created_at”:”2019-01-18T08:10:17.594Z”,”default_branch”:”master”,”tag_list”:[],”ssh_url_to_repo”:”git@codecommit.codemantra.com:root/dctraklite_vellore.git”,”http_url_to_repo”:”http://codecommit.codemantra.com/root/dctraklite_vellore.git”,”web_url”:”http://codecommit.codemantra.com/root/dctraklite_vellore”,”readme_url”:null,”avatar_url”:null,”star_count”:0,”forks_count”:0,”last_activity_at”:”2019-04-10T06:59:10.992Z”,”namespace”:{“id”:1,”name”:”root”,”path”:”root”,”kind”:”user”,”full_path”:”root”,”parent_id”:null}},{“id”:131,”description”:””,”name”:”dctrack”,”name_with_namespace”:”cM Source Admin / dctrack”,”path”:”dctrack”,”path_with_namespace”:”root/dctrack”,”created_at”:”2019-01-18T08:10:01.909Z”,”default_branch”:”master”,”tag_list”:[],”ssh_url_to_repo”:”git@codecommit.codemantra.com:root/dctrack.git”,”http_url_to_repo”:”http://codecommit.codemantra.com/root/dctrack.git”,”web_url”:”http://codecommit.codemantra.com/root/dctrack”,”readme_url”:null,”avatar_url”:null,”star_count”:0,”forks_count”:0,”last_activity_at”:”2019-05-29T08:44:03.145Z”,”namespace”:{“id”:1,”name”:”root”,”path”:”root”,”kind”:”user”,”full_path”:”root”,”parent_id”:null}}] Two problem araise while converting through: var json1 = JsonConvert.DeserializeObject<DataTable>(json); 1) because of empty array field: “tag_list”:[] Error: Unexpected JSON token when reading DataTable: EndArray. Path ‘[0].tag_list’, line 1, position 280. 2) because…

How to extract data/ line from this structure of JSON FILE using javascript?

I need to read a json file it has data in this format: “commentid”:”28129381″, “author”:”avandesande”, “parent”:””, “date”:”1243502040000″, “modeclass”:”None”, “modescore”:”1″, “title”:”No it isnt”, “sent”: [{“linePolarity”:-1.1,”systemtopicid”:4, “systemlabel”:”news”, “topicid”:1, “goldlabel”:”Google News”, “sentid”:”11″, “sent”:”Google News is a news aggregator app developed by Google. It presents a continuous, customizable flow of articles organized from thousands of publishers and magazine”, “sentimentwords”:[{“word”:”news”,”polarity”:-4.0}]},{“linePolarity”:2.0,”systemtopicid”:4,…