Can an array be top-level JSON-text?

per the debate in this post: json-conversion-in-javascript

Convert simple JSON / XML to XML with namespaces in C# .NET

What is the best way to convert json (or straightforward XML) to XML with namespaces (or with specific schema), without using strongly typed classes (C#)? (Using XSD, XSLT, template engine or...

How to convert JSON text into objects using C#

How can I convert the following JSON response to a C# object? { "err_code": "0", "org": "CGK", "des": "SIN", "flight_date": "20120719", "schedule": [ ...

Create JSON object dynamically via JavaScript (Without concate strings)

I have this JSON data: { "employees": [ { "firstName": "John", "lastName": "Doe" }, { "firstName": "Anna", "lastName":...

How to make an Action to accept dynamic JSON data from the user interface in Struts 2?

I would like to have an Action class which should accept a JSON string constructed from user interface with no setter and getter in the Action class. Is it possible? If so, what conventions would...

How to use completionHandler Closure with return in Swift?

I am trying to us a RESTful API that returns some json data. I want to encapsulate the code that creates the HTTP Request and sets the headers in its own method so I can call it by entering a url...

REST - What exactly is meant by Uniform Interface?

Wikipedia has: Uniform interface The uniform interface constraint is fundamental to the design of any REST service.[14] The uniform interface simplifies and decouples the architecture, which...

Java: Simple HTTP Server application that responds in JSON

I want to create a very simple HTTP server application in Java. For example, if I run the server on localhost in port 8080, and I make to following call from my browser, I want to get a Json array...

get file information from DirEntry in a for loop

I am new to Rust. I am trying to build a JSON object where the keys are file names and the value is the file contents. So far, I have: use std::fs; use std::io; use std::env; use...

How to filter json data by date range in javascript

I want to filter the below json data by start date and end date, it should return the data between start date and end date, I tried to achieve using below code but I'm doing wrong something to...

Efficiently write JSON to sqlite database

I'm trying to write big JSON (minimum 500MB) files to a database. I wrote a script which works and is kind of memory friendly, but it is very slow. Any suggestion on how to make it more...

Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies

I have a WinJS project that is previously built on Windows 8.1 using VS 2013. Recently I upgraded this project to Universal Windows 10 by creating a blank Javascript Universal windows 10 project...

How to handle Shopify's API call limit using microapps Node.js module

I have been banging my head finding an answer for this I just cant figure out. I am using a Node.js module for the Shopify API by microapps. I have a JSON object containing a list of product id's...

Realm and Retrofit2: sending auto-managed objects

When using Realm and Retrofit2 for sending auto-managed RealmObjects to our server, Retrofit2 (using Gson) only sends the ints in the RealmObject. It completely ignores the Strings and other...

Parse Nested JSON with PHP

I've look high and low for a solution for this, but haven't found anything that is exactly what I am running into. I am using php to parse a JSON response that is nested in a way that makes it...

Pretty-print JSON document in Logstash 5

I am using Logstash 5 to ingest a file containing a set of JSON documents, extract part of each document in each event, and write them out to another file. I want to pretty-print the output JSON....

Convert csv to JSON tree structure?

I read these questions: [csv data to nested json tree in d3][1] [Create a json tree from csv list in python][2] [How to Create a JSON Tree from a Tabulated Hierarchy in Python][3] [Python csv to...

Convert CSV to nested JSON

I am trying to convert following CSV to JSON below. Any help will be appreciated. Sample of CSV file (File would contain lot of network groups with network,host attributes) Type,Value...

reading json data from js file in python

I am uploading one js file using html input file tag. And i am reading the data in python. Since in my data var acb_messages is written . I am not able to parse it. And i want to use this variable...

Return json from web api controller with Angular

I am using ASP.NET Core for my backend and Angular for my frontend. I have an API that gives me my data as JSON from the backend. I created a service to load the api-data, but it's just returning...

In VS Code, disable error "Comments are not permitted in JSON"

I sometimes use Visual Studio Code to edit JSON files that include comments. VS Code displays an error saying, "Comments are not permitted in JSON." It would be nice to disable that error message...

Pymongo bson.errors.InvalidDocument: Cannot encode Object when read from file

I have a csv file with a header row and 100k entries in it. I am using python in pycharm IDE and conda as python interpreter. conda suppies pymongo-3.4.0 as mongo-driver. I parse my csv file and...

How to Import CSV File and Text File In Type Script

All I need help i'm new on angular-6. My question is how to `import the csv or text file in typescript` like below example for json i import file 1) Example:- I store the json file in folder...

How do I use rxjs map to mutate data in object before casting a new type from an object gotten from a HttpClient request?

Hope the title isn't too specific. The back-end I am working with returns Dates as a string. I have a function to convert that string to a javascript Date object. I use a Rxjs map to convert the...

UrlFetchApp request fails in Menu Functions but not in Custom Functions (connecting to external REST API)

I am using the following function to connect to an external API (Binance) using a Google Apps Script to retrieve a JSON array (of market prices). This simple query url works fine in a browser (no...

How do I get the JSON formof a Durable Rule in Python?

Our Python application currently loads Durable rules from a YAML file (which will soon be a database or Redis cache), then converts that YAML to JSON, before sending the JSON object to the Durable...

Try to fix this error "Node Sass version 6.0.1 is incompatible with ^4.0.0 || ^5.0.0."

I installed the latest version of node-sass in my react app but I got this error "./src/index.scss...

Next.js Unhandled Runtime Error "Failed to load script: /_next/static/chunks/..." only triggered in dev mode

I am running... a next.js app in dev mode. I have a page that maps through JSON data from the backend and renders a component 'EventListItem' for every 'event' object contained. List...

Split money on minting between more than one wallet solana metaplex & candymachine

I am new to blockchain and i am trying to play with blockchain so I used metaplex and candy-machine to upload and mint dummy nft's which is working fine. The opensource repositories that I am...

Split payload from JSON String

I receive these huge Strings via WebSocket: [ "BTC-31DEC21-100000-P", ...

Relevant tags