Category "json"

Extract value from array in Spark

I am trying to extract a value from an array in SparkSQL, but getting the error below: Example column customer_details {"original_customer_id":"ch_382820","fi

Can a custom serializer/deserializer be a Spring bean?

I have a field in a POJO which needs to be encrypted before being serialized and, similarly, decrypted upon deserialization. The issue is that a cryptor is a Sp

How can I seperate the JSON response data to list?

Data A "data": { "authors": [ { "name": "A1", "type": "AUTHOR" }, { "name": "B1", "type": "AUTHOR" } { "name": "C1", "type":

How to use the JSON response from a Python App, To render it with Javascript on to an HTML page using Fast API? [duplicate]

I have an HTML page being rendered with FastAPI: @app.get("/index", response_class=HTMLResponse) def write_home(request: Request): return t

Unexpected token in JSON at position 0 when running npm start in React Typescript project

Whenever I try to run the 'npm start' command, I get this weird error. It was working fine a few hours ago and now it simply won't start. I've tried reinstallin

Parsing Nested JSON leads to fromJson methods having a "The class 'Data' doesn't have an unnamed constructor." error

So I am trying to parse a Nested JSON from a GET request from VirusTotal but when I create the methods to parse the JSON for what I am looking for it is giving

Rest API GET Query working fine in Browser but why is it not working in Client software?

I made my own REST API with php coding and mySQL database. There is no Authentication. Just a GET call should retrieve mySQL table rows. <?php header("Acces

Azure Synapse Analytics Json Flatten

I'm new to Azure Synapse and currently have the following problem: I get a json that looks like the following: { "2022-02-01":[ { "shiftId": , "

Creating a list of objects from a nested JSON in Flutter

There's a URL address that I decoded to JSON, and there's a certain header (result) that I'm trying to convert to a list of objects (Book). When I print the con

Grouping of array items by locale - JSON transformation in Node JS using JSONata

I am stuck in transformation of JSON in JSONata. Any help on this is appreciated. Is there any library which makes this possible in Node JS apart from JSONata.

How to Add Multiple JSON_BUILD_OBJECT entries to a JSON_AGG

I am using PostgreSQL 9.4 and I have a requirement to have an 'addresses' array which contains closed JSON objects for different types of address (residential a

Modify json field value in specified node using Java

For example I have Json like this { name: Alex, lastName: Smith, delivery: { street: 7599 King George Blvd, name : PIETER CIERE }, paymentAddressData: [

jsoniter how to prevent print null to json

I use Jsoniter to deserialize jsons and serialize objects to json. I have an object with many properties and add them as json member by @JsonProperty("xxx"). wh

Cast Complex JSON Dart

the dart code below allows you to decode a json that comes from a backend inside resultValue, I have the response of the rest call with the json shown below, wh

Object Mapper to implement not null

How to implement below :- fail if name/id/sal isnull or missing/or has null value then string->pojo should fail.How can i implement ? Actual json is nested .

Parsing empty json array as null object with GSON

I am working with some not really well designed APIs and when the object is null it returns empty array, like this: No-null response: "SourceType": { "ID": "2

Is it possible to replace a value in a json string that occurs multiple times only at the top level of the structure via regex?

Hiho, I have a json string with the following structure: { "version": "1.0.0", "dependencies": { "version": "1.0.0" } } It can also look like th

How to parse a dynamic JSON schema in Talend

I have a Rest API that returns a JSON, but the same field is sometimes returned as an object and sometimes as an array based on available data, I'm using tExtra

How to write Scala console output to a XML file?

I'm trying to convert json to xml, I am getting full output in console if the json file is small but I am trying to pass large json file n I'm not getting the

Postgresql - Renaming the key of all objects in an array of a JSON column

PostgreSQL 13 The goal is to rename all src keys in the photos array to image. I have a table plans which has a column json with a simplified structure similar