Category "json"

Trying to retrive JSON Array through fetch in react native but JSON parse error:Unreconised token "<"

In the code,i am fetching the token from expo-secure-store,later fetching the API data from fetchdata function.But unfortunately error "unrecognized token" is

Unable to save and then load app settings via JSON - 'System.Text.Json.JsonElement' to type 'System.Collections.Generic.List`1[System.String]'.'

Using the below code, I'm trying to save app settings data in JSON format so it's easily readable and (in theory) easy to load back directly into data structure

Passing a trained model to another function in airflow

So I want to use airflow to display my model training. I created a model in a python function and now I want to pass it to another function which will train it.

NeDB ensureIndex isn't working as expected

I'm working on a twitter bot that is supposed to search the twitter api for key words in intervals and log the response in a database. I've so far logged result

Moshi : Generic Json converter for Room entity

I am trying to create a generic JSON parser String to Object with Moshi but I am not sure if I am doing it right as I am stuck in a scenario which needs to deal

what is difference between having quote and not having quote in json string

Got a string with key/value pair and some one in it having quote (the quote should be kept as part of the string). Would like to parse the key/value pair into a

Null check operator used on a nullsis value flutter

I have problem with null check operator and i using firebase firestore or json model And i using the method to get data user from model But while i return he gi

building a nested JSON

Some data files that I need to read / parse have headers in the style: level0var = value0 level0var.level1field = value1 level0var.level1array[11].level2field

Parse/Display nested JSON array with Jquery

I am looking to pull data from a job board API. I'd like to have headings for the departments (pulled from JSON level 1) and under each department the current o

FastApi pydantic: Json object inside a json object validation error

There is a nested rule of class DocumentSchema in pydantic written in FastApi as follows: class DocumentSchema(BaseModel): clientName: str transactionId

How to extract value from nested cURL

I'm trying to extract the data from (php)cURL response that I received from the external api. I received the response like below. {"result":"OK","data":{"body":

Azure SQL: generate JSON with column as key

I have the below data in my sql server table Name Value ValueHash country aaa zzz lastname ccc yyy email [email protected] xxx firstName bbb www And I want the below Js

Need advice to structure and modify a JSON-payload in Java

Here is a simplified JSON payload that I want to be able to change (the original one is much longer) { "request": { "jsonRequest": { "Alpha": {

Parse long String of coords into lat & longs Flutter

I receive a String of Lats & Longs from an API call in Json "lineStrings": [ "[[[-0.301457,51.515017],[-0.288265,51.51014],[-0.280462,51.503057],[-0

Trying to upload a picture via an API but get "Empty upload source" error

I'm a beginner with APIs. I'm trying to upload a file to imgBB using an API. But I get the error message: "{"status_code":400,"error":{"message":"Empty upload s

How to write valid JSON data in logs in java Spring Boot

Logs file currently "message":"{\"productID\":\"999\",\"productName\":\"Shoes",\"productCost\":\"1200\"}" the data is fine but JSON format it not valid Code cur

Array to string conversion in EasyAdmin 3 (Symfony 5)

I'm trying to display a json array on the EasyAdmin detail page. I read here Is there a way to represent a JSON field in EasyAdmin 3? that you can use ArrayFiel

JSON Schema validation for different property values

I am attempting to validate the following JSON file: { "Transaction": { "Header": { "Workflow": "Rejection", "Job-Offer": { "Off

How to Use If and else In google structured data Json

I am trying to make a custom blogger template and in this i am using google structured data Json how to use if, else in this json if data:post.firstImageUrl is

API URL Query to filter the response

So I'm trying to filter the response of my API GET query and can't seem to find a way to access deep enough in Json. My response is like: { "orders": [