List/Grid Tag Archives: JSON

Parsing ESPN API using Java and Google GSON
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 ...

Spring MVC, Ajax and JSON Part 3 – The Client Side Code
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, ...

Spring MVC, Ajax and JSON Part 2 – The Server Side Code
In my last blog I said that I was going to talk about Spring, Ajax and JSON, but didn’t. The reason for this is that I wanted to set the scene using a (barely) credible shopping ...

Using Java WebSockets, JSR 356, and JSON mapped to POJO’s
So I have been playing around with Tyrus, the reference implementation of the JSR 356 WebSocket for Java spec. Because I was looking at test tooling I was interested in running both ...

Spring MVC, Ajax and JSON Part 1 – Setting The Scene
I’ve been thinking about writing a blog on Spring, Ajax and JSON for a good while, but I’ve never got around to it. This was mainly because it was quite complicated and ...

Spring MVC – Easy REST-Based JSON Services with @ResponseBody
Spring 3 makes JSON REST services really easy. This tutorial will show you how in just a few steps. You can grab the code on GitHub. Prerequisites You should have a working Spring ...

Java API for JSON Processing (JSR-353) – Stream APIs
Java will soon have a standard set of APIs for processing JSON as part of Java EE 7. This standard is being defined as JSR 353 – Java API for JSON Processing (JSON-P) and it is ...

How to Use PropertyNamingStrategy in Jackson
Jackson api is used extensively to convert json to Object and Object to JSON.So if you have a json string and want to convert it in a java object , create field names of bean same as ...

MOXy’s Object Graphs – Input/Output Partial Models to XML & JSON
Suppose you have a domain model that you want to expose as a RESTful service. The problem is you only want to input/output part of your data. Previously you would have created a separate ...

Binding to JSON & XML – Handling Collections
One of EclipseLink JAXB (MOXy)‘s strengths is the ability to map an object model to both JSON and XML with a single set of metadata. The one weakness had been that you needed ...


