52 questions from the last 30 days
0
votes
1
answer
41
views
How to Create a Pandas Dataframe from JSON Nested Objects
I'm trying to create a Pandas DataFrame from a JSON file that looks like this:
{
"GameID": "1,218,463,841",
"Date - Start": "1761097369",
"Date - End&...
2
votes
1
answer
32
views
How to escape 'properties' in JsonSlurper in Groovy 5?
In Groovy 4.x it was possible to escape the 'properties' keyword when using JsonSlurper using getAt('properties') like below:
import groovy.json.JsonSlurper
def json = new JsonSlurper().parseText(&...
0
votes
0
answers
17
views
How can I use a custom Date deserializer for Json RequestBody?
I'm using Spring MVC and I would like to control the deserialization of Date objects in RequestBody.
I saw I can set a custom JsonDeserializer in the input object, but I would like to set a global ...
-6
votes
0
answers
51
views
Converting PDF->json [closed]
I’m trying to convert PDF’s into json files (using docling in python). The problem is I’m very inexperienced with json files. Whenever I try to transform the json files, there are too many nested ...
0
votes
0
answers
57
views
Can I send a JSON object to BigQuery without stringifying it?
I am trying to figure out if there is a way to send a JSON object to a BigQuery table that has a column of type JSON. I know the current practice is to stringify the JSON and send it over which gets ...
-2
votes
1
answer
48
views
Why am I getting “TypeError: list indices must be integers or slices, not str” when accessing a JSON response in Python? [closed]
I'm trying to access specific values from a JSON response in Python, but I keep getting the error message:
TypeError: list indices must be integers or slices, not str
I understand it has something ...
Advice
0
votes
0
replies
24
views
Exporting Azure synapse workspace artifacts
Just came across a task and had to do some digging to find the answer:
How to export Azure Synapse artifacts, more specifically pipelines, conserving their folder hierarchy, when Git integration is ...
1
vote
1
answer
81
views
Python, parse nested JSON to make it flat for CSV
I'm trying to store API output into CSV/db and can not figure out how I can make for those Key in "tierList". One row in my case should be on bin and I need key as a columns in my output.
Is ...
-2
votes
0
answers
43
views
Finding the end of json file with std::getline [duplicate]
This is probably a dumb question, and I probably put in the wrong question type on accident, but what delimiter do you use when you need to stop at the end of a json file, but not whitespaces using ...
1
vote
1
answer
85
views
Serializing of polymorphic json in ASP.NET Core 10
I want to use polymorphic JSON for the RichText type in .NET 10 because I plan migrating from one richtext format to another and I am stuck with a problem: when the object is automatically serialized ...
0
votes
0
answers
74
views
Remove duplicates from JSON-like structure using Java [closed]
Input
{
"email" : "[email protected]"
},{
"email" : "[email protected]"
},{
"email" : "[email protected]"
},{
"email" : "kot@ma....
0
votes
2
answers
71
views
Using filtering recursive struct in rust
I have this big rust struct (DictWordMetadata), with more structs contained inside it. I have to check the value of a specific field in this struct or the structs contained inside it agains the value ...
0
votes
0
answers
17
views
Support Multiple JSON Ocelot API Gateway
I have multiple microservices, and I am trying to merge them using Ocelot API Gateways. I have created different JSON files for each microservice and I'm adding them using the code below. However, it'...
2
votes
1
answer
73
views
Ignore boolean property = true in JSON serialization
I have a record with a bool property that has default value = true:
private record MyRecord()
{
public bool BoolProperty { get; init; } = true;
}
I want to ignore the "BoolProperty":...
0
votes
0
answers
82
views
Document AI importDocument returns error code 13 when using REST API
I’m currently having an issue with my code — I’m using the REST API to train a Document AI model with the custom extraction type.
I have already completed the following steps:
Called the v1 process ...
Best practices
0
votes
6
replies
98
views
How to handle undefined when converting JS obj into Python dict for later JSON use?
I am trying to convert a JavaScript object into a Python dict for processing and later export to JSON. So far easy peasy by using demjson3.
BUT: since there are undefined values it will convert these ...
1
vote
1
answer
111
views
kotlinx-serialization-json 1.9.0 library causes compile error "Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin."
After adding the dependency org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0 I tried using it like this:
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
@...
1
vote
1
answer
51
views
Issue Using JSON_TABLE with CLOB in IBM i COBOL
I am encountering an issue when using JSON_TABLE in IBM i COBOL with CLOB data. Below is an example of the code I am using:
EXEC SQL
DECLARE C_EMP CURSOR FOR
SELECT U.FIRSTNAME, U.PHONETYPE
...
0
votes
2
answers
99
views
Spring boot API, receive generic field
I have a spring boot API . The call is as below:
@PostMapping("/call-back")
public BaseResponse<String> callBack(@RequestBody CallBackDTO callbackRequest) {
}
the CallBackDTO ...
2
votes
1
answer
109
views
unnest a nested map using miller
I'm trying to convert this CSV
dir1/key1=val1/,MOVED_TO,123.pq
dir2/key1=val2/key2=val3/,MOVED_TO,456.pq
into this desired output (line-oriented json):
{"type":"quux","top&...
Advice
2
votes
2
replies
64
views
Postgres JSON or JSONB to store game's character customization data
I'm building the backend for a platform that works similarly to a game. It includes a simple character customization system with a few properties that aren't particularly relevant to the product (...
1
vote
1
answer
72
views
Converting JSON to CSV using jq with header line
I have a task to convert a JSON file to a CSV with a header at the top. The header has to be in a particular order. So the order of the keys in the JSON file will be in different order than the ...
0
votes
0
answers
41
views
Dialogflow CX / Vertex AI Search filter returns null for fields (size, structured_description.floor_level) despite schema being Indexable: true
The Problem
Good afternoon! I hope this post finds you well.
I am using a Dialogflow CX Data Store (backed by Vertex AI Search) to store JSON data that i made, for property listings. When I try to ...
0
votes
3
answers
151
views
Read a JSON File in a FOR loop
I have a simple JSON file which is essentially a long string like this:
{"quickGang": {"scopeIds": [2,9],"name": "","channelIds": [],"enabled&...
0
votes
0
answers
85
views
Spark OutOfMemoryError when reading large JSON file (3.5GB) as wholeText due to colon in path
I’m trying to load JSON data into an Iceberg table. The source files are named with timestamps that include colons (:), so I need to read them as plain text first. Additionally, each file is in a ...