Category "json"

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

parse error: Invalid numeric literal at line 1, column 6

The 1 liner to grab the ticker works fine from commandline, but i get this error running in a script. I run the 1 liner that grabs TICKERD from commandline, th

Efficient way to parse a file with different json schemas in spark

I am trying to find the best way to parse a json file with inconsistent schema (but the schema of the same type is known and consistent) in spark in order to sp

I need to send the request correctly, but I don't know how to get the required values from objects

How to get a new list from the list of objects? I need a new list of objects to POST request this list of objects i get from response: { "success": true, "b

accessing nested array key,value from json in javascript

I am new in javascript. It may be a basic thing but I am stuck with it. here is my json: { "statusCode": 200, "status": "success", "data": [

Querying with mongoose: how to parce a Mongo _id?

I found this similar question to mine, but without explanation Mongoose find query vs $match, I'm trying to do something similar. I manage to filter by today's

How to return a marshalled JSON that has a nested property?

Fellow programmers from SO! I am building a simple Spring Boot example just to add a Client using a RESTful API. I have written this Controller: import org.spri

flutter parsing JSON from firebase

I just started learning about flutter and try to use ScopedModel and I get stuck at parsing JSON, everything works until I try to get List of detail simulation

Deserialize json with dynamic objects that starts with pattern

I'm trying to deserialize some json that looks like this { "id":"2021", "descriptions_bg":[ "30231300", "30233160", "32420000", "3