Category "json"

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

Get list of keys in Complex JSON Object (Java 8)

I am dealing with a JSON that looks like this :- { "key1": { "key1.1": { "nestedkey1": "something", "nestedkey2": "something", "nest

Array specified for non-repeated field, Can I load JSON Format "{a:[1,2,3]}" into BQ

I want upload JSON data which is in the below form {a:[1,2,3]}, into BigQuery, I am familiar Record Field-Type with repeat Mode. I am getting error Array spe

How can I explore a dictionary into a dictionary when im consuming an API. Example with PokeAPI

I'm trying to see the value of a key in a nested dictionary consuming an api. The code below iterate each pokemon in a the list of all pokemons and print some o

Javascript - understanding recursive inner function

The following code prints the path of the key searched by its value inside an object: function findKeyPath(obj, keyAttr, keyValue) { let path = ""; (fu

How to use variable in JMESPath expression?

The regular expression works perfect as below: jmespath.search(currentStats, 'Items[?Name == Annie]') But I want to make my filtered key as a variable. I have t

JSON.stringify on Arrays adding numeric keys for each array value

I am trying to convert an array to object . Below is the array value which I am trying to transform into an object. kbInfo : [{ "questionId": "1", "customQuesti

Why does pandas.json_normalize(json_results) raise a NotImplementedError?

I have a json variable named json_results and I am running pandas.json_normalize(json_results). It raises the following error: in _json_normalize raise NotI

Download a json file using Python or Curl not working

Download a json file using Python or Curl not working url here: https://api.nasdaq.com/api/screener/stocks?tableonly=true&limit=25&offset=0&download