Package fr.becpg.repo.helper
Class JsonHelper
java.lang.Object
fr.becpg.repo.helper.JsonHelper
JsonHelper class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.fasterxml.jackson.databind.ObjectMapperConstantMAPPER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractCriteria(org.json.JSONObject jsonObject) extractCriteria.static ObjectformatValue(Object value) formatValue.static Stringserialize.
-
Field Details
-
MAPPER
public static final com.fasterxml.jackson.databind.ObjectMapper MAPPERConstantMAPPER
-
-
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- aJSONObjectobject.- Returns:
- a
Mapobject. - Throws:
org.json.JSONException- if any.
-
formatValue
formatValue.
-
serialize
public static String serialize(Object object) throws com.fasterxml.jackson.core.JsonProcessingException serialize.
-