public class AFHelper
extends java.lang.Object
| Constructor and Description |
|---|
AFHelper() |
| Modifier and Type | Method and Description |
|---|---|
static org.json.JSONObject |
convertToJsonObject(java.util.Map<java.lang.String,?> map) |
static org.json.JSONObject |
toJsonObject(java.util.Map<java.lang.String,?> map)
Return a copy of the contents of the given map as a
JSONObject. |
public static org.json.JSONObject convertToJsonObject(java.util.Map<java.lang.String,?> map)
public static org.json.JSONObject toJsonObject(java.util.Map<java.lang.String,?> map)
JSONObject. Instead of failing on
null values like the JSONObject map constructor, it cleans them up and
correctly converts them to JSONObject.NULL.