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 Summary
Constructors Constructor Description JSONUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
fill(Object target, Map<String,Object> source)
Uses reflection to fill public fields and Bean properties of the target object from the source Map.static Object
fill(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 void
tryFill(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
-
fill
public 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.
-
fill
public 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.
-
-