[jackson-user] Completely disabling Jersey 2 + Jackson 2 auto-registration

2017-08-11 Thread mhcomputing
Hello, I am running into a seemingly impossible problem with these three classes: org.glassfish.jersey.jackson.internal.JacksonAutoDiscoverable com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider How can I completely disable the Jerse

[jackson-user] completely disabling Jersey 2 and Jackson 2 auto-registration

2017-08-11 Thread mhcomputing
How can I completely disable the Jersey and Jackson code which registers the following classes, and register a custom implementation instead? org.glassfish.jersey.jackson.internal.JacksonAutoDiscoverable com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider com.fasterxml.jackson.jaxrs.json.Jack

[jackson-user] Warning regarding thread-safety / reentrant usage of PrettyPrinter and Indenter instances

2018-04-25 Thread mhcomputing
Hello, Today I ran into a bizarre issue where my application indented its JSON improperly or not at all, sometimes always wrong, and sometimes only partially wrong, and sometimes changing what kind of wrong from REST call to REST call. After researching the problem, I noticed that PrettyPrinte

[jackson-user] decoding JSON payloads with pathological text encodings

2018-04-25 Thread mhcomputing
Hello, I wanted to inquire about a bizarre situation I've run into, with decoding a certain uniquely weird kind of JSON lately. I have some JSONs which come from a web crawling service, which is fetching webpages from all over the world. These pages can be formatted in various insane text encod

Re: [jackson-user] Warning regarding thread-safety / reentrant usage of PrettyPrinter and Indenter instances

2018-04-25 Thread mhcomputing
On Wednesday, April 25, 2018 at 7:52:01 PM UTC-7, Tatu Saloranta wrote: > > On Wed, Apr 25, 2018 at 4:16 PM, > > wrote: > So: to make sure `PrettyPrinter` works in thread-safe manner, it needs > to either: > > 1. Be stateless (like `MinimalPrettyPrinter`), immutable. OR > 2. Implement `com.fa

Re: [jackson-user] decoding JSON payloads with pathological text encodings

2018-04-25 Thread mhcomputing
On Wednesday, April 25, 2018 at 7:43:44 PM UTC-7, Tatu Saloranta wrote: > > At the point where deserializers handle things, decoding has already > been done, and > information potentially lost and/or corrupt. But if we go down to > lower level, decoder (`JsonParser`) > is responsible for tokeni

Re: [jackson-user] Warning regarding thread-safety / reentrant usage of PrettyPrinter and Indenter instances

2018-04-25 Thread mhcomputing
On Wednesday, April 25, 2018 at 11:52:17 PM UTC-7, Tatu Saloranta wrote: > > Ah. Any method starting with underscore is considered more or less > implementation-specific. > So you would need to sort of follow control flow from public methods. > Your suggestion sounds reasonable, assuming you k

Re: [jackson-user] decoding JSON payloads with pathological text encodings

2018-04-26 Thread mhcomputing
On Wednesday, April 25, 2018 at 8:50:54 PM UTC-7, mhcom...@gmail.com wrote: > > On Wednesday, April 25, 2018 at 7:43:44 PM UTC-7, Tatu Saloranta wrote: >> >> At the point where deserializers handle things, decoding has already >> been done, and >> information potentially lost and/or corrupt. But

Re: [jackson-user] decoding JSON payloads with pathological text encodings

2018-05-14 Thread mhcomputing
On Monday, April 30, 2018 at 5:04:40 PM UTC-7, Tatu Saloranta wrote: > > Factory methods are called by ObjectMapper and ObjectReader; those are > probably the best > examples. It is possible to only overload some of internal methods > that these factory methods > delegate to (2 or 3, instead of