360,509 questions
1
vote
1
answer
55
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
0
answers
46
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
83
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
58
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
10
replies
206
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
103
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
138
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
90
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
98
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 ...
Advice
0
votes
9
replies
100
views
dict of count JSON
I have tried to make a a function get_statistics to make a dictionary of the JSON persistence. I started doing it manually, but it wants me to do it automatically. Currently stuck making my code of ...
3
votes
0
answers
105
views
Android-Retrofit: getting escaped double-quoted JSON
I'm having problems receiving a JSON response from a REST endpoint using Retrofit. Some of the requests return JSON with a bunch of null characters and escaped double quotes.
Pasted from Android ...
Best practices
0
votes
3
replies
113
views
mtgjson.com usage recommendations
https://mtgjson.com/
I am currently building program for MTG, Magic the Gathering that is used for Cube Building. I have been using API calls to Scryfall ( scryfall.com ). This has been working so far ...