Home » Tag Archives: JSON

Tag Archives: JSON

Jackson JSON Parsing Error – UnrecognizedPropertyException: Unrecognized field, not marked as ignorable [Solved]

While parsing JSON string received from one of our RESTful web services, I was getting this error “Exception in thread “main” com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field “person” (class Hello$Person), not marked as ignorable”. After some research, I found that this is one of the common error while parsing JSON document using Jackson open source library in Java application. The error messages say that ...

Read More »

JSON Processing 1.1: 100DaysOfJavaEE8

JSON Pointer Challenge Given the JSON document in the code snippet below, what is the result of using the JSON Pointer feature from JSON-P 1.1?                 The new shape of the JSON object will be as follows: { "name": "Duke", "likes": [ "Java EE 8", "Java", "Ice Cream" ] } What is JSON ...

Read More »

What is JSON Processing (JSON-P API)?

Introduction to JSON-P in Java EE The Java API for JSON Processing 1.0 (JSR 353) is a low level, lightweight JSON parser, and generator that provides that capacity to manipulate JSON data at the property and value level. The JSR 353 provides two JSON processing models: an object model and a streaming model. Both models can generate JSON data and output ...

Read More »

Streaming large JSON file with Jackson – RxJava FAQ

In the previous article, we learned how to parse excessively large XML files and turn them into RxJava streams. This time let’s look at a large JSON file. We will base our examples on tiny colors.json containing almost 150 records of such format: { "aliceblue": [240, 248, 255, 1], "antiquewhite": [250, 235, 215, 1], "aqua": [0, 255, 255, 1], "aquamarine": [127, 255, 212, 1], ...

Read More »

Serializing/Deserializing Json in GWT

JSON & GWT There was recently an interesting discussion in GWT Users group about best practices for serializing/deserializing JSON in the client side. This post aims to highlight its important points. There is so far three different ways of converting an object to JSON and back from the client side in GWT: gwt-jackson framework: gwt-jackson wraps some of the functionalities ...

Read More »

How to Escape JSON String in Java – Eclipse IDE Tips

While working or JSON parsing in Java application it’s quite common to just copy paste a JSON String from some resources e.g. a RESTful web service and then use the Jackson library to parse the JSON. This is the quickest way to test and learn parsing JSON string in Java, but the main problem with this approach is that the JSON ...

Read More »

Use JSON with Play and Scala

Once getting your hands into typing scala code using play, the first thing that comes to mind is JSON. Without doubt JSON is one of the most basic components of web applications. Rest apis use json, your angular app has to consume json and the list goes on. If you are lazy like me, you expect that it is sufficient ...

Read More »

How To: Insert and Read From a Database using Json

In this article we will create a plugin for Speedment that generates serialization and deserialization logic using Gson to make it super easy to map between database entities and JSON strings. This will help to showcase the extendability of the Speedment code generation while at the same time explore some of the cool features of the Gson library. Speedment is ...

Read More »

JSON Web Tokens With Spring Cloud Microservices

spring-interview-questions-answers

At Keyhole, we have published several blogs about Microservices. We’ve talked about architectural patterns used in a Microservices environment such as service discovery and circuit breaker. We’ve even posted blogs on platforms and tools, such as the recent blog on Service Fabric. One important piece of the architecture that we have glossed over is the security around Microservices. Specifically, authentication ...

Read More »