public class Jsonator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
JSONObject |
getJson() |
protected JSONArray |
getJson(java.util.Collection<?> coll) |
JSONObject |
getJson(JSONObject json)
TODO: edge cases with swagger dataType attribute (eg: date)
|
protected JSONObject |
getJson(java.util.Map<?,?> map) |
protected java.lang.Object |
getJsonObject(java.lang.Object o) |
protected boolean |
isHidden(java.lang.reflect.Method method)
For swagger "hidden" annotation, lowest declaring subclass governs.
|
public Jsonator(Jsonable jsonable)
public JSONObject getJson()
public JSONObject getJson(JSONObject json)
protected JSONArray getJson(java.util.Collection<?> coll) throws JSONException
JSONException
protected JSONObject getJson(java.util.Map<?,?> map) throws JSONException
JSONException
protected boolean isHidden(java.lang.reflect.Method method)
protected java.lang.Object getJsonObject(java.lang.Object o)
Copyright © 2018