public class

JSONUtil

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

Class Overview

Utility methods for working with JSON objects in Java.

Summary

Public Constructors
JSONUtil()
Public Methods
static Object fill(Object target, Map<StringObject> source, boolean useProperties)
Uses reflection to fill public fields and optionally Bean properties of the target object from the source Map.
static Object fill(Object target, Map<StringObject> source)
Uses reflection to fill public fields and Bean properties of the target object from the source Map.
static void tryFill(Object target, Map<StringObject> source)
Ignores reflection exceptions while using reflection to fill public fields and Bean properties of the target object from the source Map.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public JSONUtil ()

Public Methods

public static Object fill (Object target, Map<StringObject> source, boolean useProperties)

Uses reflection to fill public fields and optionally Bean properties of the target object from the source Map.

public static Object fill (Object target, Map<StringObject> source)

Uses reflection to fill public fields and Bean properties of the target object from the source Map.

public static void tryFill (Object target, Map<StringObject> source)

Ignores reflection exceptions while using reflection to fill public fields and Bean properties of the target object from the source Map.