All Questions
Tagged with jsonobject or json
360,526 questions
0 votes
1 answer
59 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", ...
-2 votes
0 answers
49 views
SyntaxError: Unexpected end of JSON input parsing OpenRouter LLM response truncated at max_tokens in Node.js
## 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
7 replies
116 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 ...
-1 votes
0 answers
46 views
Why license.ExtendedJsonData do not show my add ons in UWP app. I have three add ons in place, two of subscription and one of Durable type [closed]
Call Title.Text = license.ExtendedJsonData; {"productAddOns":\[\],"productId":"9NHRDTMXFVHV","skuId":"0010","isActive":true,"isTrial&...
Advice
1 vote
5 replies
74 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
100 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 { "...
1 vote
2 answers
136 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
84 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
95 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
90 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
109 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 ...
-4 votes
0 answers
46 views
Getting error while using paginate parameter, while saving data to local JSON
import os import json import logging from pathlib import Path from dotenv import load_dotenv from newsdataapi import NewsDataApiClient logger = logging.getLogger(__name__) logger.setLevel(logging....