Questions tagged [nested-json]
114 questions
0
votes
0 answers
JSON.Net How To Deserialize JSON within JSON
We are deserializing Json files with Newtonsoft JSON. How do you use the JsonConvert.DeserializeObject() to deserialize a JSON, which in turn contains a JSON?
{
"character": "Someone",
"json": "{\"test\":true}"
}
We created a type for…
user16448747
0
votes
1 answer
Normalizing all levels of nested JSON
I am trying to normalize this nested JSON file but the 'rewardsReceiptItemList' will not flatten no matter what I do. I tried using json.normalize and record_path= argument.
Here is an example of the JSON:
{"result":[{"_id": {"$oid":…

Nico
- 79
- 1
- 1
- 9
0
votes
2 answers
Expected a value of type 'int', but got one of type 'Null'
I'm trying to pull data using github repo tree json with dart (flutter). Expected a value of type 'int', but got one of type 'Null'.
Expanded(
child: SingleChildScrollView(
scrollDirection: Axis.vertical,
…

muazzez
- 33
- 7
0
votes
2 answers
How to normalize nested json using pandas
I want to normalize the "values" array
{
"data": [
{
"name": "page_call",
"period": "lifetime",
"values": [
{
"value": {
"about": 11,
"videos": 2,
"posts": 15,
…

kunal
- 39
- 5
0
votes
0 answers
How to filter nested json array output using one of the array element values
I have a json here - Returning rows of a search result
"rows": [
{
"uid": "t091_13213131331",
"id": "12414_0214124214",
"cells": [
…

Krishna Krish
- 47
- 8
0
votes
2 answers
Unnest a nested JSON object
I have a nested JSON object below.
var payload = {
"name" : {
"first" : "I am a",
"last" : "Customer"
},
"product_info": {
"name" : "Product 1",
"category" : {
"id" : "123456789",
…

Anh Nguyen
- 51
- 6
0
votes
1 answer
How to remove all \ from nested json in SQL Redshift?
I've got some problems with extracting values from nested json values in column.
I've got a column of data with values that looks almost like nested json, but some of jsons got \ between values and I need to clean them.
JSON looks like…

Vladislava Gonchar
- 109
- 2
- 10
0
votes
1 answer
Looking to generically convert JSON file to CSV in Python
Tried solution shared in link :: Nested json to csv - generic approach
This worked for Sample 1 , but giving only a single row for Sample 2.
is there a way to have generic python code to handle both Sample 1 and Sample 2.
Sample 1 ::
{
…

Eja
- 45
- 1
- 7
0
votes
0 answers
Adding select all checkbox to material-ui table header stopped taking input on each cell - reactjs
First a heads up - This code is handed over to me and I have tried to simplify the problem to present here as much as I could..
Background
There is a 2d table that is getting column header from data array and row header from samples…

Samra
- 1,815
- 4
- 35
- 71
0
votes
1 answer
How to send nested JSON input data to API in Angular 11
I need to send nested JSON data to my API. It's my first time to do this, and I don't have any idea how to do that in Angular. This is the nested JSON data that I need to send
JSON
{
"message": "string",
"data": {
"startDate": "2022-01-01",
…

Untitled99
- 25
- 1
- 7
0
votes
0 answers
How to dynamically convert Spark DataFrame to Nested json using Spark Scala
I want to convert the DataFrame to nested JSON.
Source Data:
DataFrame has data values like:
[you.you1.you3: String, you.you1.me2:decimal ]
Expected Output:
I have to convert DataFrame value to Json like
{ "you" : { "you1" :{ "you3" :…

sam
- 11
- 1
0
votes
1 answer
Nested JSON in customised format from pandas Dataframe, with added label
Dataframe
df = {"UNIT":["UNIT1","UNIT1","UNIT2","UNIT2"],
"PROJECT":["A","A","C","C"],
"TEAM":[1,2,1,2],
"NAME":["FANNY", "KATY", "PERCY", "PETER"],
"ID":[123,234,333,222]}
data = pd.DataFrame(df)
UNIT PROJECT TEAM NAME ID
0 UNIT1 A…

Alana
- 89
- 8
0
votes
1 answer
Swiftui Mapping Nested JSON to Flat Model
I need to access the data in the nested dictionary of the Memodel struct. From both the music and image dictionary. Please any help is needed to map out correctly, i have tried using AzampSharp's example https://www.youtube.com/watch?v=b5wVIQNrI6k…

EMPIRE
- 57
- 7
0
votes
1 answer
Parsing nested json data in reactjs usind datagrid from material ui
I need to parse nested JSON data to normal JSON which is coming from an API and need to pass that JSON data to a react data grid (am using one available from material ui) like below :
Json Data
{
"rows": [
{
"id": 101,
…

Darshan Subramanya
- 1
- 1
- 5
0
votes
0 answers
Flutter - nested json from API
I am still new to flutter development and recently I've been trying to call API. I've managed to do so without placing data into the model and it worked fine. The issue is when I try to serialize the data. I've created a model using…