Class DefaultJsonConverter
java.lang.Object
edu.internet2.middleware.grouper.ws.rest.json.DefaultJsonConverter
- All Implemented Interfaces:
JsonConverter
use grouper's default json library
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertFromJson(String json, StringBuilder warnings) convert a json string to an object.convertToJson(Object object) convert an object to json.voidconvertToJson(Object object, Writer writer) convert an object to json.
-
Constructor Details
-
DefaultJsonConverter
public DefaultJsonConverter()
-
-
Method Details
-
convertFromJson
Description copied from interface:JsonConverterconvert a json string to an object. note that only certain object are allowed to be marshaled from json, the aliases in WsRestClassLookup.getAliasClassMap()- Specified by:
convertFromJsonin interfaceJsonConverterwarnings- put warnings here- Returns:
- the object
- See Also:
-
convertToJson
Description copied from interface:JsonConverterconvert an object to json. Note, there are only certian aliases which are allowed to be converted from json, so make sure to marshal the container object name somewhere (e.g. in the top level json object)- Specified by:
convertToJsonin interfaceJsonConverter- Returns:
- the json
- See Also:
-
convertToJson
Description copied from interface:JsonConverterconvert an object to json. Note, there are only certian aliases which are allowed to be converted from json, so make sure to marshal the container object name somewhere (e.g. in the top level json object)- Specified by:
convertToJsonin interfaceJsonConverter- Parameters:
object- to convert to jsonwriter- write the json here- See Also:
-