fasterxml Questions

3

Solved

We've defined a model in our service code as - @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) public class SomeData { public boolean tnAvailable; @NonNull public String sTempChang...
Peterman asked 31/3, 2017 at 16:7

1

Solved

I have the following XML file: <?xml version="1.0" encoding="UTF-8"?> <Site xmlns="bla" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="0" affiliations="foo" status="OPERATIONAL...
Footlight asked 13/7, 2017 at 8:26

1

Solved

I have a list of objects with a field "description". This field can be huge (+3000 char) but I use it in the preview (I display only the 100 firsts char). Is there a way in jackson to limit the si...
Virchow asked 17/5, 2017 at 7:30

1

Solved

Link.java @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "rel", "href","method" }) public class Link { @JsonProperty("rel") private String rel; @JsonProperty("href") private ...
Colene asked 5/5, 2017 at 12:5

2

Solved

This is a similar question as the one here, which is unfortunately unresolved yet. If you want to debug the code, here is the GitHub repo. I got the following NoClassDefFoundError for ObjectMappe...
Traject asked 7/5, 2017 at 0:39

2

I get the following error when trying to run a java program that uses jackon's ObjectMapper class: Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectM...
Boneblack asked 26/9, 2014 at 20:52

1

Solved

I'm intended to use epoch millisecond for the deserialization and serialization. However only the deserialzation works but failed to serialize back to the correct ZonedDateTime. ObjectMapper mappe...
Coronach asked 2/5, 2017 at 5:51

3

Solved

After migration from fasterxml.jackson 2.6.3 to 2.7.0. This is because public JavaType constructType(Type type, Class<?> contextType) method used in Spring's AbstractJackson2HttpMessageConver...
Acquiescence asked 11/1, 2016 at 12:41

1

Solved

I have an enum defined as public enum Locale { EN_US, ES_MX } These locale, however, are written as lowercase strings with hyphen as en-us and es-mx in data. Is there a way to map these lowerc...
Wards asked 6/1, 2017 at 22:42

1

I pulled down an 2 years old project and I'm having trouble building the project. I'm getting the following errors: Error:(57, 29) java: cannot access com.fasterxml.jackson.core.Versioned class fi...
Surplus asked 6/11, 2015 at 20:2

0

QUESTION: Can you use CsvMapper/CsvSchema to convert csv to a map<string, object> where the object is something other than string, like boolean or integer? Details: I have some csv files th...
Parmentier asked 20/9, 2016 at 19:50

1

I am sorry if my question is invalid but wanted to know what's the relation between fasterxml(jackson-dataformat-xml) and Woodstox. The documentation(https://github.com/FasterXML/jackson-dataformat...
Brown asked 14/12, 2015 at 13:21

0

I am trying to display JSON data, for that i am using fasterxml jackson. I am able display JSON but the JSON is getting to infinite loop and in log file i am getting error as ERROR [org.apache...
Guyot asked 14/4, 2016 at 9:51

2

Solved

I'm writing a JSON Client for a Server that returns Boolean values as "0" and "1". When I try to run my JSON Client I currently get the following Exception: HttpMessageNotReadableException: Could ...
Yggdrasil asked 15/12, 2015 at 19:13

3

Solved

The question is how to map an array of JSON objects to a java.util.Map where each key would be some specified property of an object and the value is the object itself. JSON: {"items": [{"field1": ...
Egidio asked 25/11, 2015 at 10:45

2

Solved

I've been trying to upgrade the JSON modules to use the FasterXML (2.6.3) versions of Jackson instead of the old Codehaus modules. During the upgrade, I've noticed that the naming strategy differs ...
Logarithmic asked 13/11, 2015 at 10:39

2

Solved

Now the only problem stopping me from using kotlin in production is that I can't find a correct proguard file for it. What I used: 1.Kotlin 2.Anko 3.Jackson-Kotlin-module Here's the war...
Levins asked 29/10, 2015 at 12:33

3

Solved

Is it possible to create stream from com.fasterxml.jackson.databind.node.ArrayNode? I tried: ArrayNode files = (ArrayNode) json.get("files"); Stream<JsonNode> stream = Stream.of(files); B...
Infestation asked 20/9, 2015 at 20:7

2

Solved

I'm consuming two JSONs. The first one has the ID as a String. "details": { "id": "316.0" } The other one has the ID as Integer. "details": { "detailId": 316 } Both JSONs are being mapped ...
Nembutal asked 17/8, 2015 at 22:25

1

I am trying to figure out how to change the root node name using jackson fasterxml. For example: public class Car { @JsonProperty("engine-type") String engineType = "v8"; } public class Ford ...
Gershwin asked 18/7, 2015 at 0:53

2

Solved

I have a POJO which looks something like this: public class Thing { private final int x; private final int y; private final int z; public Thing(String strThing) { // parse strThing which is...
Alga asked 22/7, 2015 at 16:48

1

Solved

I have to serialize a simple integer-to-string map as JSON and then read it back. The serialization is pretty simple, however since JSON keys must be strings the resulting JSON looks like: { "12...
Pieeyed asked 5/7, 2015 at 13:35

1

Solved

What I want is to use default BeanSerializer conditionally for my class's objects: class MyCustomSerializer extends StdSerializer<AbstractEntity> { public MyCustomSerializer() { super(Abs...
Neat asked 4/5, 2015 at 10:58

1

I have had the worst imaginable time to work with nanoseconds while parsing from object to json and vice verse. I created the simplest possible use of Jackson and I can't get the nanoseconds. Below...
Muse asked 8/1, 2015 at 18:36

1

Solved

Suppose I have the following Java class: import java.util.List; import org.apache.commons.lang3.tuple.Pair; import com.fasterxml.jackson.databind.ObjectMapper; public class Demo { public int x; ...
Harrier asked 12/12, 2014 at 15:8

© 2022 - 2024 — McMap. All rights reserved.