360,510 questions
0
votes
0
answers
51
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 :
...
2
votes
1
answer
72
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
3
replies
65
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 ...
1
vote
1
answer
58
views
How to write a JSON string into an in-memory table in DolphinDB?
I am trying to fetch JSON data from an HTTP API and convert it into an in‑memory table in DolphinDB. The JSON response is an array of objects, and I want to store it as a table where each object ...
0
votes
1
answer
64
views
WSO2 MI – Error Could not write JSON stream when handling base64 payload
I’m working with WSO2 Micro Integrator and exposing a PATCH API that receives a base64 document in JSON payload, then forwards it to a backend service.
<resource methods="PATCH" uri-...
0
votes
1
answer
86
views
How can I iterate through a JSON file with PHP and access the second element of the file? [duplicate]
I have a JSON file with geo coordinates and some features like this:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
...
-3
votes
0
answers
66
views
SyntaxError: Unexpected end of JSON input parsing OpenRouter LLM response truncated at max_tokens in Node.js [closed]
## Problem
I'm calling LLM models via OpenRouter (works the same with OpenAI's API) from an Express server, asking for structured JSON responses. When the model's output exceeds `max_tokens`, the ...
Best practices
1
vote
12
replies
259
views
Best way to go from JSON to bash variables
I am writing a bash script, for educational purposes.
So I was thinking what is the best way to parse JSON and write the JSON attributes to bash variables.
In my script, I am making an API call that ...
Advice
1
vote
5
replies
75
views
Does JS usage affect my website's security
I'm a newbie and I have used JS in my API integrations and most of the the things on my website. I am curious if people can manipulate the packages and find out my API keys/secrets.
I have SMS API, ...
Advice
0
votes
1
replies
110
views
Why is there no `orient=table` option for `pandas.DataFrame.to_dict`?
I'm trying to save a pandas.DataFrame object to disk, as a JSON. The slight complication is that I need to store some additional data alongside it. So my intended JSON would be
{
"...
2
votes
2
answers
142
views
Python json normalization - nested structure
I am learning to process what i consider a complex json structure and am trying to load this into a dataframe. I want a single record for each outcome id. Here is the sample json structure
{
&...
1
vote
1
answer
94
views
How can I send a POST request with a CSRF Token and a JSON body to a Django endpoint? [duplicate]
I'm developing an Android Studio app which talks to a server running Django. I'm in the process of implementing the login process on the phone, however the server always returns 403 Forbidden to my ...
0
votes
1
answer
99
views
JSON cannot be parsed as the type Int32
When sending a POST on Robot Framework I got this error:
Message: There was an error deserializing the object of type ContentDirect.CoreService.Contract.Message.SubscriberManagement....
Best practices
1
vote
5
replies
116
views
How to sort my functions in python code with regards to efficiency
I have a code in python, multiple files. Is it better to merge them into a file? Is it better to split class and non-class code? And if I do have them in one file with global variables, how to deal ...
-4
votes
0
answers
52
views
How to force a specific field order in JSON output using Jackson? [duplicate]
I need my JSON output to show the "idTransanction" and "details" fields first for logging purposes. Currently, Jackson alphabeticalizes them or follows a random order. Is there an ...