Questions tagged [json]
JSON (JavaScript Object Notation) is a serializable data interchange format that is a machine and human readable. Do not use this tag for native JavaScript objects or JavaScript object literals. Before you ask a question, validate your JSON using a JSON validator such as JSONLint (https://jsonlint.com).
360,876
questions
0
votes
0
answers
7
views
Create mysql table from json string when 1st dimension hold columns and 2nd dimension holds rows
I am sitting with a legacy database and im trying to create this table in mysql using json strings stored in the database.
I have a table that stores a massive json string and one of the keys inside ...
-1
votes
2
answers
22
views
How to read JSON Data in PHP Without Knowing the Keys Beforehand
I have following JSON response in PHP
{
"tlds": {
".art": {
"register": "16.99",
"transfer": "16.99",
...
0
votes
0
answers
17
views
JSON file cannot be found in SwiftUI project
I'm making a simple JSON loading function in my viewmodel, which retrieves the data from a localized JSON file. However, when I call the function it doesn't seem to find anything at all.
func loadJson(...
0
votes
1
answer
14
views
Error parsing JSON: A JSONObject text must begin with '{' at 0 [character 1 line 1]
I am getting this error and my json file I am getting error from this code part
"JSONObject data = new JSONObject(content);"
Error:Error parsing JSON: A JSONObject text must begin with '{' ...
0
votes
0
answers
21
views
Utilizing json if/then to require a parameter if not specified?
So, I've got a json that has a handful of initial values, but as a user story I need to allow adjustments per point/object rather than at the top.
{"properties":{
"p1":{},
&...
0
votes
0
answers
10
views
Blazor Web assembly can't parse class from json
I have a pretty simple dto class.
public class GridDto<T> : List<T>
{
public int TotalItems { get; set; }
public GridDto(IEnumerable<T> items, int totalItems = 0)
{
...
-2
votes
0
answers
30
views
JSON concatenation into a single dict [closed]
How can I concatenate these lists configured in the parameter extra into a single file?
{
"info": "FIRST",
"function": "...
0
votes
1
answer
45
views
Importing JSON file into SQL Server
I am not familiar with importing JSON files. I received the code below to import a JSON file but I do not know where to find the data once it is imported? Can someone tell me where the file would be ...
-3
votes
0
answers
28
views
Change encrypted password with new one via rest API [closed]
In a json profile configuration of a user in web application there is password in encrypted form:
{
"name": "Password",
"value": "{aes}...
-2
votes
0
answers
28
views
Follow Up with iRON [closed]
Sir;
I had posted a thread "Iterating Json attributes and PSCustom Objects" which you replied to in length, but which was deleted due to my kludging answering the question and saying "...
0
votes
1
answer
23
views
How to pretty dump a Pydantic model with a 2D list
I have a pydantic model with a 2D array that I’d like to pretty print when I dump it to a file. For reference:
import json
from annotated_types import Len
from typing_extensions import Annotated
...
0
votes
1
answer
23
views
How to parse JSON from an API in SwiftUI, where the response is not an Array, asynchronously?
I am attempting to parse JSON from an API in SwiftUI where the response is not an Array, this seems to be the only way I can find online, from my searches.
An example of the response data is as ...
0
votes
0
answers
27
views
How to handle circular references in TypeScript when serializing objects to include `$ref` annotations
I have an object structure where circular references need to be represented using $ref annotations in the output.
Here is an example of the input and expected output :-
Input is -
const obj2 = { ...
2
votes
2
answers
29
views
Modify json based on condition with jolt
I am given the below json and it needs to be concatenated based on condition if it not null
{
"id": "4583",
"price": "149.99",
"sale_price": &...
-1
votes
0
answers
17
views
Json file's to data in PHP/Symfony [closed]
I have a deployment class in PHP that generates a Json file. Can I use this Json file in other software to perform tests? This Json is a configured web page.
In my deployment class, this Json file is ...