org.camunda.bpm.engine.impl.util
Class JsonUtil

java.lang.Object
  extended by org.camunda.bpm.engine.impl.util.JsonUtil

public final class JsonUtil
extends Object

Author:
Sebastian Menski

Constructor Summary
JsonUtil()
           
 
Method Summary
static List<Object> jsonArrayAsList(JSONArray jsonArray)
          Converts a JSONArray to a List.
static Map<String,Object> jsonObjectAsMap(JSONObject jsonObject)
          Converts a JSONObject to a Map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonUtil

public JsonUtil()
Method Detail

jsonObjectAsMap

public static Map<String,Object> jsonObjectAsMap(JSONObject jsonObject)
Converts a JSONObject to a Map. It supports nested JSONObject and JSONArray.

Parameters:
jsonObject - the json object to convert
Returns:
the resulting map

jsonArrayAsList

public static List<Object> jsonArrayAsList(JSONArray jsonArray)
Converts a JSONArray to a List. It supports nested JSONObject and JSONArray.

Parameters:
jsonArray - the json array to convert
Returns:
the resulting map


Copyright © 2014 camunda services GmbH. All rights reserved.