Home » Tag Archives: JSON (page 2)

Tag Archives: JSON

Using Google GSON : Extra Goodies : Part II

json-logo

We continue with Using GSON from last article, also in case you missed the first article in series here is link. So, here we go with another installment in series. Versioning Support If you want to maintain multiple versions of an object for JSON conversion, Google GSON library has nice @Since annotation for it. This annotation can be applied to ...

Read More »

How to create JQuery DataTable using JSON and servlet

json-logo

In this article I’ll introduce the basic coding that require to create JQuery DataTable using JSON passed by simple servlet. DataTable is very powerful JQuery based grid with advance features which can be build in short span of time with customize features.             Installation Download Latest JQuery DataTable download Above download will provide two JQuery ...

Read More »

Getting Started with Google GSON

java-interview-questions-answers

In Java world,  JSON is becoming de facto standard for data exchange format over XML because of its ease of use and efficiency in terms of transferring it. If you don’t know about JSON, it is Javascript object notation, a text based data exchange format which is collection of name-value where name is strictly of string type and value can ...

Read More »

Custom Deserializer in Jackson and validation

json-logo

tl;dr: it is important to add input validation to custom json deserializers in Jackson. In RHQ we make use of Json parsing in a few places – be it directly in the as7/Wildfly plugin, be it in the REST-api indirectly via RESTEasy 2.3.5, that already does the heavy lifting. Now we have a bean Link that looks like:     ...

Read More »

Android AsyncTask ListView – JSON

json-logo

Many times we need to populate a Listview using an AsyncTask. This is the case when we have to invoke a remote server and exchange information using JSON. In this post i want to go a bit deeper in the ListView analysis . In the previous posts, i described how to use ListView in several ways using standard and custom ...

Read More »

MOXy’s @XmlVariableNode – JSON Schema Example

json-logo

We are in the process of adding the ability to generate a JSON Schema from your domain model to EclipseLink MOXy.  To accomplish this we have created a new Variable Node mapping. In this post I will demonstrate the new mapping by mapping a Java model to a JSON Schema. You can try this out today using a nightly build ...

Read More »

Parsing ESPN API using Java and Google GSON

json-logo

For my first post, I’ll explain how to parse the ESPN API.  The API documentation can be found at http://developer.espn.com/docs. Firstly, you’ll need to request an API key, then you can start querying the REST API to retrieve the JSON response.  In the following example, I’m going to query simply for all the players in the sport of “Soccer” (dam ...

Read More »

Spring MVC, Ajax and JSON Part 3 – The Client Side Code

json-logo

If you’ve been following this short series of blogs on Spring, Ajax and JSON you’ll recall that I’ve got as far as creating a Spring MVC web application that displays a form, which allows the user to select a bunch of items and submit a request to the server to purchase them. The server then replies with some JSON allowing ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.