Class JsonUtil

java.lang.Object
io.beanmapper.spring.util.JsonUtil

public class JsonUtil extends Object
Utilities for working with JSON.
Since:
Nov 13, 2015
Author:
Jeroen van Schagen
  • 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 content
      objectMapper - the object mapper
      Returns:
      set of the property names