FasterXML is an open source XML and JSON parsing for the Java platform
Questions tagged [fasterxml]
489 questions
0
votes
1 answer
How to deserialize arrays via fasterxml?
I have the following class
@JsonIgnoreProperties({"error"})
public class GetReceiptResponse {
//Cashier Id
public String cid;
//Created
public String time;
//TotalAmount
public String ta;
//Cash amount
public String…

vcmkrtchyan
- 2,536
- 5
- 30
- 59
0
votes
0 answers
Possibility of FetchType option to be LAZY and EAGER at run time
I have a very strange situation to handle in Spring and returning Json using faster jackson. I have defined the main object structure in the below way,
class Obj1
{
@OneToMany(fetch = FetchType.LAZY, mappedBy = "field1")
List objs2;
//Getter…

Kiran Joshi
- 746
- 1
- 11
- 27
0
votes
1 answer
how to update elements in a Map containing JsonNode in java?
Here is the json
{
"UserInfoService": {
"state": "active",
"message": [
"hello",
"world"
]
},
"UserProfileService": {
"state": "inactive",
"message": "[foo,bar]"
}
}
I…

brain storm
- 30,124
- 69
- 225
- 393
0
votes
1 answer
Issue parsing XML when com.fasterxml.aalto-xml is in the Maven dependency
I'm having trouble with the library com.fasterxml.aalto-xml.
I Have a Project A (Dspace) that do not depend on the library com.fasterxml.aalto-xml.
I developed a library B, that use a library C that depends on com.fasterxml.aalto-xml.
I wonder why…

MaatDeamon
- 9,532
- 9
- 60
- 127
0
votes
1 answer
FasterXML: POJO serialization to XML. JacksonXml Annotations not working
I'm serializing a Java POJO to xml and want to change the xml tag names. I can't get this working however, the @JacksonXmlElementWrapper and @JacksonXmlProperty annotations don't get picked up.
Maven pom.xml:

jwklomp
- 75
- 1
- 8
0
votes
1 answer
Exception while creating Java object from JSON using fasterxml
I am trying to build a Java object using fasterxml with the below JSON
JSON : {"name":"Location Test",
"location":{
"coordinates":[10.1234657,10.123467]
},
...
}
I am getting this…

Shabin Muhammed
- 1,092
- 2
- 18
- 29
0
votes
1 answer
How to control @class with @JsonTypeInfo in polymorphism
I have some class structure like this
class A {
private List b;
public List getB() {
return b;
}
public void setB(List b) {
this.b = b;
}
}
@JsonTypeInfo(use=Id.CLASS, include=As.PROPERTY,…

Thánh Ma
- 133
- 1
- 8
0
votes
1 answer
fasterxml JSON serialization: how to set a certain order of fields?
Is there any way to impose certain order of fields for FasterXML JSON serialization?
For example, I need myObject.date go exactly first, then myObject.amount exactly after that, then myObject.itemsCollection, etc.
If there is no existing method to…

user3791111
- 1,469
- 1
- 15
- 20
0
votes
1 answer
How to register generic JsonDeserializer for all types which implements given interface
Does exist any way how to register JSON deserializer for all types which implements particular interface using Jackson 2.X and Spring Framework instead of annotating every property with @JsonDeserialize(using =…

Peter Jurkovic
- 2,686
- 6
- 36
- 55
0
votes
0 answers
FasterXml(Jackson) and Array deserialization with empty elements
I received the following exception
com.fasterxml.jackson.core.JsonParseException: Unexpected character (',' (code 44)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
when trying to parse array
[1,"some…

r.r
- 245
- 4
- 15
0
votes
1 answer
Use faster jackson to serialize object with oneToMany mappings
Wanted to share this knowledge on using jackson to serialize object with oneToMany mappings and give the response in a string format,
My Class Structure :
@Entity
public class Order {
/*
All the fields associated with this class
…

Kiran Joshi
- 746
- 1
- 11
- 27
0
votes
0 answers
JsonProperty mapping to varying key
How can I map:
user: {
#user1: "http:www.example.com/user1"
}
To a class?
I tried:
public static final class User {
public final String user1;
@JsonCreator
public User(@JsonProperty("#user1") String user1) {
this.user1…
user1191027
0
votes
1 answer
JodaTime LocalTime to JSON - Actual Stack Overflow
I am trying to serialize Java objects to JSON. One of my Java objects has a JodaTime LocalTime object as one of its fields.
A fair number of my Java objects also have various fields that are Collections that could be empty. I want to prevent the…

Random Human
- 946
- 1
- 14
- 31
0
votes
2 answers
Adding collection to JSON response using Spring Boot and fasterxml jackson and @OneToMany annotation
I'm using spring boot v1.2.3 with fasterxml jackson annotations and I'm trying to expose the entire sibling collection into the single JSON response, but can't just seem to get the added collection into the response using the right annotations and…

Nick N
- 984
- 9
- 22
0
votes
2 answers
Serlaize case class with the variable inside it in scala with jackson
i am tiring to serialize a case class using jackson fasterxml, i can see the constructor parameters after deserialize (taskRequest and taskNameIn) but not the variables inside the class (jobsRequests is null for…

user1120007
- 268
- 3
- 13