Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
58 views

I am trying to read XML into a JSONNode so I can pull values from it. For some reason the .get() function is reading the wrong Node. This is the XML I am trying to read: <order> <order_ID&...
Karson074's user avatar
  • 127
0 votes
1 answer
63 views

I can successfully parse the specific JSON data from a JSON file. The issue is that the file I am parsing is inconsistant with the letter case. So I need to do a case insensitive match instead of the ...
rerat's user avatar
  • 375
1 vote
1 answer
57 views

This should be really simple, I think I am just missing the obvious, so I am asking for some help. I have a json file that I need to grab some subkeys and put them in an array. My code will show the ...
rerat's user avatar
  • 375
1 vote
2 answers
139 views

Once I've converted a JSON stream/ document to a JsonNode, how do I discover what kind of JSON it represents? For example, given a JsonNode how do I find out whether: it is a JsonArray, or a ...
markvgti's user avatar
  • 4,629
0 votes
2 answers
122 views

So I am writing a wrapper for JsonNode to easier extract json properties when there is no data-contract and I need to support a plethora of different values. But I am having some issues when it comes ...
Thomas's user avatar
  • 525
0 votes
1 answer
66 views

Below is my SMS class public class SMS implements Notification { private static final Logger LOG = LogManager.getLogger(SMS.class); private static final Properties PROP = PropertyReader....
Kavishka Rajapakshe's user avatar
0 votes
2 answers
817 views

Apologies, Google tells me there are many similar questions to this already asked on Stack Overflow but I'm struggling to find an answer that works for my situation. I have a Java application that is ...
kuytsce's user avatar
  • 123
0 votes
2 answers
77 views

I have the next json file I want remove key and value for ProductCharacteristic ->name. How it can be done in Java? [ { "id": "0028167072_CO_FIX_INTTV_1008_P3909_IDX0", "...
Catea's user avatar
  • 13
1 vote
2 answers
640 views

I'm working to become proficient with the newest C# language features and .net 8. I understand that with C# 8.0 and above, the compiler will generate a warning when assigning to a reference type when ...
Vivian River's user avatar
  • 32.6k
-2 votes
1 answer
327 views

I'm new to Java. I had to replace the reference to org.codehaus.jackson.JsonNode library with com.fasterxml.jackson.databind.JsonNode to resolve security vulnerabilities. Now, I'm getting the above ...
Soumya Naidu's user avatar
0 votes
2 answers
232 views

I want to merge JSON Object to master JSON Object at required depth Master JSON { "data":{ "barrel":{ "length":100, "stage":[0,1,2] }, ...
Pranav's user avatar
  • 103
0 votes
2 answers
822 views

Let's say I am expecting a simple JSON response from an API like so: { "message": "Source: ", "incomingUrl": "https://10.1.1/api/echo", "...
AlbatrossCafe's user avatar
2 votes
1 answer
477 views

I have JSON: { "dimensions": [ { "name": "dim1" }, { "name": "dim2" }, { ...
Chris Harrington's user avatar
0 votes
2 answers
1k views

I have the following json file test.json { "type" : "object", "id" : "123", "title" : "Test", "properties" : { "...
drmaa's user avatar
  • 3,744
0 votes
1 answer
351 views

I have a JSON node as below from which I need to remove all the values after # like DynamicAttribute#1279930005#ZZ8400 to DynamicAttribute { "uniqueCode": "ZZ", "entity"...
Scarlett John's user avatar
2 votes
2 answers
779 views

I am using JsonNode.ToJsonString(...) in my unit tests. Unfortunately the property order in the serialized string seems to be depend the runtime order how the child nodes and value nodes were added. ...
g.pickardou's user avatar
  • 36.5k
-1 votes
1 answer
407 views

I have two JsonNode objects, A and B, which both contain an identical field, "segments". I need to take the content from JsonNode object A and append it to the content from B. I need both ...
Maria1995's user avatar
  • 501
0 votes
3 answers
1k views

I have an expected json file as below. It is a nested object { "contact_info": [{ "contact_id": "Contact_001", "contact_status": { ...
TaraNG's user avatar
  • 17
1 vote
1 answer
644 views

I have a JsonNode which looks like: [ { "ObjectIWantToRetrieve": { "key0": { "key1": { "key2": "val3" ] ...
Blake's user avatar
  • 177
0 votes
1 answer
3k views

I want to check Jsonnode value is present or not, As shown below myObj is an input. in this name is a key and "" is a value. I want to check if I get "" value then it should be go ...
user8995182's user avatar
0 votes
1 answer
696 views

I have a function that takes in kafka ConsumerRecords<Object, Object> records and what I need to do is make an Element object out of each record. Below is how it works for the Json ...
Kal's user avatar
  • 1
1 vote
0 answers
281 views

We are running into issues retrieving MongoDB document using Spring JPA as it relates to MongoDB date field. Here is a document { "field1": "some value", "field2":...
rwachter's user avatar
0 votes
2 answers
963 views

This is how much JsonNode response has different key value pairs, similar to the example below. How can I traverse it to get the response in both key and value pair? { "message": "...
Tanu's user avatar
  • 1,712
3 votes
1 answer
1k views

I'm trying to save an entity that has a JsonNode attribute and has to be converted to jsonb to be stores in a postgres database. This is the database table: CREATE TABLE IF NOT EXISTS ...
Lorena's user avatar
  • 113
6 votes
1 answer
23k views

I am trying to set an empty node as a value of some other json node. new JsonNode() didn't work as that is protected. Example: JsonNode jsonNode = externalSource(); // <--This is the parent json ...
Mooncrater's user avatar
  • 4,961
0 votes
1 answer
139 views

I'm migrating code from .Net Framework to Core and without getting into the reason why I want to do this, I'll just keep it simple and focus on what I want to do. Let's say I have a jsonString that ...
Velocedge's user avatar
  • 1,504
1 vote
0 answers
69 views

I want to make a request with this link: https://data.egov.kz/api/v4/gbd_ul/v1?apiKey=10232845919d49ac8eb22a8b8347fb1b&source={size:10,query:{bool:{should:[{prefix:{bin:"тов"}},{match:{...
Beigut Beisenkhan's user avatar
0 votes
2 answers
538 views

I have an array of Jsonnodes. something like that [ { "coupon": "VAR", "currency": "USD", "sip": "94989WAX5", "...
Sumit Sood's user avatar
0 votes
2 answers
2k views

I have two JSON strings which are essentially arrays of JSONObject. The two JSON strings have below structure and keys: JSON-1: [ { "title": "ABC", "...
New2Java's user avatar
  • 313
1 vote
1 answer
234 views

I have a Json: { "field":[ { "key":"123", "name":"book1" }, {} ] } I want to serialize this json to ...
aizen's user avatar
  • 11
1 vote
3 answers
2k views

I try to convert a JSON into an XML with the following code final ObjectMapper objectMapper = new ObjectMapper(); final XmlMapper xmlMapper = new XmlMapper(); JsonNode jsonNode = objectMapper....
dank's user avatar
  • 21
1 vote
1 answer
2k views

RestTemplate restTemplate = new RestTemplate(); String resourceUrl = "https://api.github.com/orgs/engineyard/repos"; //json address String response = restTemplate.getForObject(...
SonyCZK's user avatar
  • 21
1 vote
1 answer
501 views

I've been trying to execute a set of rules on a request object on the basis of some set of configuration value. Below is the example on what I am trying to do: Configuration: config.json { "...
Mehul Chaturvedi's user avatar
1 vote
1 answer
2k views

I'm trying to load the data.json file for a unity project. I don't know where I went wrong. I want to be able to load the level: level1, level2 I have tried some other ways but still not working. Can ...
Davil's user avatar
  • 11
-1 votes
1 answer
50 views

How to load list object Data in Unity? I want 10 levels assigned to 10 buttons. I think use jsonNode. Hope everybody helps, please. I don't want to do it like this. Does anyone have a faster way? [...
Davil's user avatar
  • 11
0 votes
2 answers
8k views

I have such a json response: "data": [ { "id": "1", "login": "name", "display_name": "dName&...
Alpharius's user avatar
  • 509
1 vote
0 answers
477 views

I have a Dynamic JsonNode without POJO like this: { "Patient": { "Addresses": {}, "Phones": {}, "Faxes": {}, "FirstName&...
Amit's user avatar
  • 11
0 votes
0 answers
244 views

I want to read from a file and store it in a string. This is my method: public static String createJsonFileFromNode(String filename, JsonNode root) { String dirName = "src/test/resources/...
Rumi's user avatar
  • 81
2 votes
2 answers
3k views

The new mutable JsonNode type has neither a Clone() nor a copy-constructor. How can I make a copy of one? I tried to duplicate a shallow JsonObject (one filled with primitive key-value pairs) using ...
Qwertie's user avatar
  • 17.4k
0 votes
1 answer
47 views

What im trying to do is JSON: { aKey:{ aChildKey:"" }, bKey:"" } expected: aKey:{ aChildKey:"aKey.aChildKey" }, bKey:"bKey" } Please ...
prithviraj v's user avatar
0 votes
1 answer
3k views

getUserDetails Method returns Mono of Type JsonNode. But I Actually want to return a Mono<User.java> or Flux<User.java>. please help modifying getBulkUserInfo or getUserDetails to get the ...
Akhyansh Bohidar's user avatar
0 votes
1 answer
1k views

I'm using assertj and Jackson's JsonNode combined. So far I've been using Assertions.assertThat(objectNode0).isEqualTo(objectNode1); and everything works fine. Now, I need to ignore some fields in the ...
emilianotebes's user avatar
13 votes
3 answers
44k views

I have a controller that accepts ObjectNode as @RequestBody. That ObjectNode represents json with some user data { "given_name":"ana", "family_name": "fabry&...
user9347049's user avatar
  • 2,045
0 votes
1 answer
4k views

I want to iterate through all nodes of a JsonNode object, And want fetch price details from below JsonNode object , Can some one help me how can we fetch below price details response { "content&...
Krish's user avatar
  • 4,250
0 votes
1 answer
7k views

Hi I'm trying to convert JSON data to class, I use the method of deserializing like that: public class GroupDeserlialize extends StdDeserializer<Employe> { public GroupDeserlialize() { this(...
Takwa's user avatar
  • 59
0 votes
1 answer
7k views

I was trying to add new array items to the JsonNode with updates in below code. String request = "{\n" + " \"item1\": 123,\n" + " \"...
Shabar's user avatar
  • 2,843
0 votes
1 answer
1k views

i have list of masters that have two fields that are name and rating and after serialization to array node i need to add one more field to each object for example i have json [{"masterName":...
DozezQuest's user avatar
1 vote
1 answer
893 views

I have a JSON which looks like this (number of fields heavily reduced for the sake of example): { "content": { "id": {"content": "1"}, "param1&...
Rinkashikachi's user avatar
1 vote
1 answer
1k views

I am trying to find the type of any element within the JSON Schema using the most memory efficient and high-performance approach. However, after reaching a certain point I am a bit stuck and running ...
BATMAN_2008's user avatar
  • 3,642
0 votes
1 answer
801 views

I have sample jsonNode data - Inputstr = { "a.b.c.d.e":"123", "a[0].b.c.d[0].e":"123", "a[0].b.c.d[1].e":"123", "a[1].b.c.d[0].e":&...
username89's user avatar