Package io.beanmapper.spring.util
Class JsonUtil
java.lang.Object
io.beanmapper.spring.util.JsonUtil
Utilities for working with JSON.
- Since:
- Nov 13, 2015
- Author:
- Jeroen van Schagen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPropertyNamesFromJson
(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Retrieve the property names mentioned in a JSON content.
-
Constructor Details
-
JsonUtil
public JsonUtil()
-
-
Method Details
-
getPropertyNamesFromJson
public static Set<String> getPropertyNamesFromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Retrieve the property names mentioned in a JSON content.- Parameters:
json
- the JSON contentobjectMapper
- the object mapper- Returns:
- set of the property names
-