Category "json"

Problem: ParserError: Syntax Error at line: 1, column 32

I am new to programming and I am with this problem. When I put in the Terminal "npm run build" to create the compression of my project in React.js I have this e

Given a Cerberus JSON Schema file, how can I generate a dictionary object

Problem I have a Cerberus Json schema file and I need to generate Json files based on the schemas with default values given the data_types. The key _type in th

What is the package.json file?

As a new Developer I'd like more information about json file. I know that The this file is the heart of a Node.js system. This file holds the metadata for a par

use sed to replace version number in a package.json file

This is a part of my package.json file { "name": "org-team-module", "version": "1.1.0-snapshot", "description": "Some description", "scripts": {

JSON: Trouble editing a JSON file in Python

What I want to do is remove the array containing "Nike" under the "Shoe" variable. Here is the Json file: { "Shoes/Colorways": [ { "

How to make GSON fail on unknown properties

I need GSON mapper to throw an exception if json contains unknown fields. For example if we have POJO like public class MyClass { String name; } and json l

ODataQueryOptions do not response the property which is my custom class

I have an entity like this public class MyDto { public string string1; public string string2; public MyCustomClass myCustomClass; } I have two cont

How to replace text for some properties using jolt

I'm using jolt in order to do some transformations, I've been able to do that but I'm having some issues trying to replace some text in some properties of my JS

json.dumps on dictionary with bytes for keys

Trying to convert dictionary object with keys of type bytes to json using json.dumps(). Format of dictionary object is not known beforehand. Have found solution

Shorten JSON reading class

I have a simple JSON reading class that should grab values from a JSON object and put it in c# variables. Right now it uses 8 if statements, but I was wondering

Google Sheet: How to define the "cols.label" value in JSON export?

I use a google sheet as an endpoint to import data into an html table. Depending on the type of data in the sheet I get a different JSON structure. To explain t

How do I fetch and parse JSON data to Google Sheets Script?

EDIT*** Modified the question now that I have a proper source... I am trying to copy a communication log to Google Sheets and don't know enough about scripting

Operator "missing" not working properly in JsonLogic

I am using JsonLogic to validate my input payload with the rules defined using JsonLogic. I am able to test the rules using "Play with it" tool and my rules wor

How to get rid of the KeyError: 'names'

I was trying to make a program that can make classification between runway and taxiway using mask rcnn. after importing custom dataset in json format I am getti

how to add columns and values in a dataframe in python

In the below JSON array { "data": [ { "name": "page_call_phone_clicks_logged_in_unique", "period": "lifetime", "values": [ {

How to update element value in JsonObject?

I have a json file with parameters name and hit. [{ "name": "pavan", "hit": true }] I would like to update name and hit to [{ "name": "sai",

Can't stringify an array-of-objects variable in react project

As you can see in the picture, steppedJobDataState is not empty. But x = stringified steppedJobDataState, and yet logging that shows an empty set of arrays. I'm

Sending json through api post request

I'm currently struggling to send a JSON via post request into my controller to use it further by calling a stored procedure. Here is the post request using axio

How to convert an XML structured-like object to a JSON string in Java?

So I have an XML structured object (Java) and need some help to convert it to a JSON string without using any library and in an iterative way. E.g <root>

Deserialize double array

I try to deserialize some JSON on Swift 4.2 with Codable Protocol. My Json: { "status":1, "data":[ [ { "id":"4klJeiCKTs