fr.paris.lutece.plugins.rest.util.json
Class JSONUtil

java.lang.Object
  extended by fr.paris.lutece.plugins.rest.util.json.JSONUtil

public final class JSONUtil
extends java.lang.Object

JSON Utils


Method Summary
static net.sf.json.JSONObject json(java.util.Map model)
          Convert a model into a JSON object
static java.lang.String model2Json(java.util.Map model)
          Convert a model into a JSON formatted string
static java.lang.String model2Xml(java.util.Map model)
          Convert a model into an XML generated string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

model2Json

public static java.lang.String model2Json(java.util.Map model)
Convert a model into a JSON formatted string

Parameters:
model - The model
Returns:
The JSON string

model2Xml

public static java.lang.String model2Xml(java.util.Map model)
Convert a model into an XML generated string

Parameters:
model - The model
Returns:
The XML string

json

public static net.sf.json.JSONObject json(java.util.Map model)
Convert a model into a JSON object

Parameters:
model - The model
Returns:
The JSON Object


Copyright © 2010 Mairie de Paris. All Rights Reserved.