Home » Tag Archives: JSON (page 2)

Tag Archives: JSON

JSON Schema’s Role in Building and Deploying Your API

What is JSON Schema? It provides a thorough way of describing the structure and properties of any JSON value. It is supremely useful in documenting requests made to and responses from any JSON API. This article will look at its role in the software development cycle of an API. Documenting JSON Response formats Perhaps the most obvious use case for ...

Read More »

Converting XML to JSON & Raw Use in MongoDB & Spring Batch

Overview Why convert XML to JSON for raw use in MongoDB? Since MongoDB uses JSON documents in order to store records, just as tables and rows store records in a relational database, we naturally need to convert our XML to JSON. Some applications may need to store raw (unmodified) JSON because there is uncertainty in how the data will be ...

Read More »

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 »