JSON

How to Serialize Java.util.Date with Jackson JSON Processor / Spring 3.0

How to Serialize Java.util.Date with Jackson JSON Processor / Spring 3.0

Quick tip: how to serialize a java.util.Date object with Jackson JSON Processor – Sprinv MVC 3.

Scenario:

I have the following Java Bean:

package com.loiane.model;

import java.util.Date;

import org.codehaus.jackson.annotate.JsonAutoDetect;

@JsonAutoDetect @Entity public class Company {

private int id; private double price; private String company; private Date date; private String size; private byte visible; }

And I have the following method in my controller:

public…

AKPC_IDS += "505,";
Tagged with:           

Spring MVC and AJAX with JSON

Spring MVC and AJAX with JSON

This tutorial will walk through how to configure Spring MVC to return a JSON object to client browser.

One of the main decisions to be taken while developing AJAX applications is the format of messages passed by the server to the client browser. There are many options to choose from including plain text, XML, CSV… AKPC_IDS += "237,";

Getting Started with JSON

Getting Started with JSON

This post will walk through JSON basic concepts.

What is JSON?

JSON (JavaScript Object Notation) is a lightweight data-interchange format, widely hailed as the successor to XML in the browser.

It is easy for humans to read and write.

It is easy for machines to parse and generate.

It is based on a subset of the JavaScript Programming Language.

It…

AKPC_IDS += "66,";
Tagged with: