Class JsonHelper

java.lang.Object
fr.becpg.repo.helper.JsonHelper

public final class JsonHelper extends Object

JsonHelper class.

Version:
$Id: $Id
Author:
matthieu
  • Field Details

    • MAPPER

      public static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
      Constant MAPPER
  • Constructor Details

    • JsonHelper

      private JsonHelper()
  • Method Details

    • extractCriteria

      public static Map<String,String> extractCriteria(org.json.JSONObject jsonObject) throws org.json.JSONException

      extractCriteria.

      Parameters:
      jsonObject - a JSONObject object.
      Returns:
      a Map object.
      Throws:
      org.json.JSONException - if any.
    • formatValue

      public static Object formatValue(Object value)

      formatValue.

      Parameters:
      value - a Object object.
      Returns:
      a Object object.
    • serialize

      public static String serialize(Object object) throws com.fasterxml.jackson.core.JsonProcessingException

      serialize.

      Parameters:
      object - a Object object
      Returns:
      a String object
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - if any.