Package com.rabbitmq.tools.json
Class JSONUtil
- java.lang.Object
- 
- com.rabbitmq.tools.json.JSONUtil
 
- 
 public class JSONUtil extends Object Utility methods for working with JSON objects in Java.
- 
- 
Constructor SummaryConstructors Constructor Description JSONUtil()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Objectfill(Object target, Map<String,Object> source)Uses reflection to fill public fields and Bean properties of the target object from the source Map.static Objectfill(Object target, Map<String,Object> source, boolean useProperties)Uses reflection to fill public fields and optionally Bean properties of the target object from the source Map.static voidtryFill(Object target, Map<String,Object> source)Ignores reflection exceptions while using reflection to fill public fields and Bean properties of the target object from the source Map.
 
- 
- 
- 
Method Detail- 
fillpublic static Object fill(Object target, Map<String,Object> source) throws IntrospectionException, IllegalAccessException, InvocationTargetException Uses reflection to fill public fields and Bean properties of the target object from the source Map.
 - 
fillpublic static Object fill(Object target, Map<String,Object> source, boolean useProperties) throws IntrospectionException, IllegalAccessException, InvocationTargetException Uses reflection to fill public fields and optionally Bean properties of the target object from the source Map.
 
- 
 
-