360,488 questions
-2
votes
0
answers
64
views
Tkinter notes app not saving to JSON file — notes disappear on restart [closed]
I am building a Google Keep-style notes app in Python using tkinter. Notes appear on screen while the app is running, but when I close and reopen it they are gone. The JSON file is either not being ...
Advice
0
votes
4
replies
63
views
Dynamic data fetching system
I am trying to write my first project using python which is a recipe administrator, which contains a programm that fetches url given a keyword, and fetches them back and add them dynamically to a ...
Tooling
0
votes
8
replies
65
views
What is the easiest way to convert nested JSON to Python dataclasses automatically?
I'm working with complex nested JSON responses from an API and want to convert them into strongly-typed Python dataclasses for better code completion and type safety.
Currently, I'm manually creating ...
0
votes
1
answer
62
views
Optimizing Python CSV parsing for memory-constrained environments (Bypassing the "Object Tax")
I'm working with large CSV datasets (10M+ rows, ~400MB-1GB) on low-resource cloud instances (1GB-2GB RAM). Standard pandas.read_csv is causing MemoryError because the "Object Tax" (wrapping ...
Advice
0
votes
3
replies
63
views
How to paginate and process large JSON API responses in Python without hitting errors or duplicates?
I am working with a REST API that returns a large JSON dataset (hundreds of thousands of records). The API supports pagination using parameters like startIndex and resultsPerPage.
I am using Python ...
Advice
0
votes
5
replies
54
views
How to validate the request and return errors properly in a REST service?
A client sends a request to the server, e.g. POST /companies, where the request body looks like that:
{
"name": String (unique),
"ownerId": Long (fk)
}
When I validate the ...
-2
votes
1
answer
107
views
create dictionary from json [duplicate]
I have some json that looks like this:
"lines":
{
"0010": {
"ProvCountyCode": "047",
"ProvNo": "770887",
"...
0
votes
0
answers
33
views
QMetry DELETE API fails with application/json but works with multipart/form-data (Jersey MultivaluedMapImpl error) [closed]
I am facing an issue while triggering a DELETE API from QMetry when the request Content-Type is set to application/json. The same API works correctly for GET and POST requests using JSON.
Backend: ...
Advice
1
vote
6
replies
148
views
How can I write this code in a more professional way?
I'm currently working on a small project to practice (as you'll see from my code, I'm a beginner). The goal is simply to create a mini online library where I can add, delete, and view my books, and ...
0
votes
1
answer
182
views
Remove a dictionary from a list [closed]
I'm building a simple book manager with features to add, delete, view, and search for books.
This seems like a good project for me since I'm a beginner. But I'm stuck on task 2, which is deleting a ...
Advice
1
vote
5
replies
106
views
Create a book manager with a json file using python
I'd like to create a kind of book manager where, at the start, I have a menu with several options, such as adding a book, deleting a book, viewing my library, or searching for a book.
But I'm not ...
-2
votes
0
answers
53
views
Spring Cloud Stream Kafka: Batch mode fails to map JSON to Abstract Class DTO (returns byte[] instead of List) [closed]
I am facing an issue with Spring Cloud Stream (Kafka Binder) when using batch-mode: true combined with an Abstract Class as the DTO type.
The problem:
In single-record mode (default), the JSON ...
0
votes
2
answers
144
views
QJsonDocument and IEEE 754 doubles
im actually working with QT 5, using QJsonDocument, I need to save correctly formatted double into my Json Document, i tried several ways to format correctly, this is the way I ended using :
...
3
votes
1
answer
217
views
Missing fields during serialization after upgrading Jackson 2 to Jackson 3
I migrated from spring boot 3 to spring boot 4 and I have an issue with the JSON created by Jackson.
The response is like this:
public class MyResponse {
private List<MyData> data;
...
Advice
0
votes
2
replies
76
views
How many JSON objects can you nestle into each other?
Just started learning JSON with C# and i was wondering how many objects you could nestle into another object?
My best guess would be 255.
Also, is this a common practice in actual websites? I have not ...