public class JSONUtils
extends java.lang.Object
Constructor and Description |
---|
JSONUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
trimText(com.fasterxml.jackson.databind.JsonNode jsonNode,
java.lang.String... excludeFields)
A utility method to trim all text values in a json node
|
static void |
trimText(JSONObject jsonObject,
java.lang.String... excludeFields)
A utility method to trim all text values in a json object
|
public static void trimText(JSONObject jsonObject, java.lang.String... excludeFields)
jsonObject
- a JSONObjectpublic static void trimText(com.fasterxml.jackson.databind.JsonNode jsonNode, java.lang.String... excludeFields)
jsonNode
- a json nodeexcludeFields
- field names to exclude from trim