Category "json"

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

How to acess an entity under _links in Angular from Spring Data REST?

I encountered a problem which is very challenging to my Angular level. Could you give a help please? In Spring Data REST the entity Worker has a @OneToMany bidi

Converting Complex Tree Structure to JSON Python

I need to convert a Tree with the following class structure: Class Tree: def __init__(self, data): self.data = data s

OpenJson - Need to Flatten & Write Key Values & Objects to Columns

Given the following JSON structure, I'm struggling to find correct format to write the keys and values for 'users" to separate relational columns: Key Values fo

Bytes object has not attribute json with requests

I am extracting BTC history data from a website and want to store these results. I want to run this in a function and then use map because it's much faster than

How to convert rows under a column into a list under a dictionary under a list under a dictionary?

I have an excel file with the below column name as variantID and corresponding elements. I want the final output as {"filters":[{"tags":[{"k":201,"v":"201"},{"k