Category "json"

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": [

Unable to map nested array data in JavaScript?

Here, I have nested array object categories which have nested array objectproduct. product contains name, price, discount, unitsold properties with images array

How to use Python to parse custom file into JSON format

I am trying to parse a machine/software generated file type into a JSON file type for easy analysis with other software and other Python scripts. The file is st

Parsing two objects into one

I've two objects objclient and objserver of the same type Object,(i.e. Dog, Cat..) when I receive objclient in my endpoint I need to replace its attributes with

Asp .Net Core Json deserialize to model

Returns Json format data to me from an api. However, the type of the "FuelType" property inside the object may be different. For example, 1 time comes as follow

python ttp parser ignore line if I have ORPHRASE in template and consecutive blank spaces in input text

Envorionment: windows 10, python: 3.9, ttp: 0.8.4 I'm having a problem with ORPHRASE in the TTP template, and if there's consecutive blank-space characters in t