org.cloudfoundry.client.lib.util
Class JsonUtil

java.lang.Object
  extended by org.cloudfoundry.client.lib.util.JsonUtil

public class JsonUtil
extends Object

Some JSON helper utilities used by the Cloud Foundry Java client.

Author:
Thomas Risberg

Field Summary
static org.springframework.http.MediaType JSON_MEDIA_TYPE
           
protected static org.apache.commons.logging.Log logger
           
 
Constructor Summary
JsonUtil()
           
 
Method Summary
static List<CloudResource> convertJsonToCloudResourceList(String json)
           
static List<String> convertJsonToList(String json)
           
static Map<String,Object> convertJsonToMap(String json)
           
static String convertToJson(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.commons.logging.Log logger

JSON_MEDIA_TYPE

public static final org.springframework.http.MediaType JSON_MEDIA_TYPE
Constructor Detail

JsonUtil

public JsonUtil()
Method Detail

convertJsonToMap

public static Map<String,Object> convertJsonToMap(String json)

convertJsonToList

public static List<String> convertJsonToList(String json)

convertJsonToCloudResourceList

public static List<CloudResource> convertJsonToCloudResourceList(String json)

convertToJson

public static String convertToJson(Object value)


Copyright © 2014. All rights reserved.