public class JSONUtils extends Object
| Constructor and Description |
|---|
JSONUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,List<Object>> |
convertToMap(String jsonFields)
This function only operates on one-level JSON objects.
|
static String |
convertToString(Map<String,List<Object>> constraints) |
static String |
createJSONString(org.apache.stanbol.contenthub.servicesapi.ldpath.LDProgramCollection ldpc) |
static String |
createJSONString(org.apache.stanbol.contenthub.servicesapi.search.featured.SearchResult searchResult) |
public static Map<String,List<Object>> convertToMap(String jsonFields)
jsonFields - public static String createJSONString(org.apache.stanbol.contenthub.servicesapi.search.featured.SearchResult searchResult) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionpublic static String createJSONString(org.apache.stanbol.contenthub.servicesapi.ldpath.LDProgramCollection ldpc) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionCopyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.