Class JSONUtil

java.lang.Object
com.rabbitmq.tools.json.JSONUtil

public class JSONUtil extends Object
Utility methods for working with JSON objects in Java.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait