Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
86 views

I have a sample object (included below) that is intended to be used with JAXB, JSON-B and JPA. I have writen some unit tests to verify the output but the JSON-B is giving me a little fuss. When I ...
voidnull's user avatar
1 vote
1 answer
289 views

Given the following JSON (or JSONB) object: {"apple": 13.1, "banana": 2.0, "zucchini": 7.2, "orange": 19.1} I would like to sort the object keys by their ...
oneturkmen's user avatar
  • 1,340
0 votes
1 answer
63 views

tableABC I have a PostgreS table with above structure with a JSONB column. I'm using Spring JDBC to retrieve data. Is there a way to get the row related data in the below structure, using a SQL query....
Aki T's user avatar
  • 686
1 vote
2 answers
705 views

I am developing a Java library that can be used to call a certain web API that is using JSON data format to pass information. Said library will only contain data classes according to the data ...
Franz Wimmer's user avatar
  • 1,497
0 votes
1 answer
492 views

I use the RestEasy client. In the processed json object there is a base64 encoded byte array. However, the Yasson library assumes an int-coded array in the unconfigured case. How I tell the JsonConfig ...
Superhugo's user avatar
0 votes
2 answers
2k views

I am having an error while trying to use Jsonb / JsonbBuilder in a JakartaEE maven project. Error StackTrace java.lang.RuntimeException: jakarta/json/bind/JsonbBuilder at org.apache.tomcat....
Adrianxu's user avatar
4 votes
1 answer
417 views

I have a JPA entity implementing an interface and I want to expose via jax-rs endpoint only the fields that are defined by that interface. Something that looks like: public interface ...
NotGaeL's user avatar
  • 8,555
1 vote
1 answer
3k views

My project uses JSON-B with JAX-RS. The framework I am using is Quarkus and use Java 11. I tried to upgrade to Java 16 and use Java Records. It seems that JSON-B and Records does not work nicely. I ...
sudhir shakya's user avatar
1 vote
2 answers
375 views

Let's say I have the following Java enum: @AllArgsConstructor public enum Code { Code1("Short text 1", "Long text 1"), Code2("Short text 2", "Long text 2&...
StSch's user avatar
  • 407
1 vote
1 answer
709 views

I'm trying to serialize a simple object with a date in JSON. For that I'm using the JSONB library from Java EE. I'd rather use a Date object than a simple String as I want the data to be strongly ...
Nicolas Baumann's user avatar
0 votes
1 answer
154 views

With Jackson we can extract specific element from JSON string and map it to relevant class, like below: ObjectMapper mapper = new ObjectMapper(); JsonNode root = mapper.readTree(someJson); JsonNode ...
YevgenyL's user avatar
  • 331
0 votes
2 answers
107 views

I am using json binding API to parse json string for application deployed on Liberty application server. Suppose I have json string as given below String message = "{ "color" : "...
cooldev's user avatar
  • 527
1 vote
1 answer
360 views

As we're moving from Payara 4 to Payara 5, which using JSON-B (implemented by Yasson) as default, we're trying to configure JSON-B to have the same behavior as Jackson, which we used in Payara 4. With ...
YevgenyL's user avatar
  • 331
1 vote
0 answers
166 views

I am converting a library from Jackson to json-b, but I cannot find the equivalent of JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY. Does such a thing exist? I got the following to work, but I hate ...
Damon Jacobsen's user avatar
1 vote
1 answer
274 views

I'm trying to deserialize the following JSON (see API documentation) using the JSON-B implementation from Quarkus. What bugs me here are the dynamically generated numeric keys for multiple JSON ...
Franz Wimmer's user avatar
  • 1,497

15 30 50 per page