
Package ca.uhn.fhir.util
Class JsonUtil
java.lang.Object
ca.uhn.fhir.util.JsonUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
deserialize
(String theInput, Class<T> theType) Parse JSONstatic <T> List<T>
deserializeList
(String theInput, Class<T> theType) Parse JSONstatic String
Encode JSONstatic String
Encode JSONstatic void
Encode JSONstatic String
serializeOrInvalidRequest
(IModelJson theJson)
-
Constructor Details
-
JsonUtil
public JsonUtil()
-
-
Method Details
-
deserialize
Parse JSON -
deserializeList
public static <T> List<T> deserializeList(@Nonnull String theInput, @Nonnull Class<T> theType) throws IOException Parse JSON- Throws:
IOException
-
serialize
Encode JSON -
serialize
Encode JSON -
serialize
public static void serialize(@Nonnull Object theInput, @Nonnull Writer theWriter) throws IOException Encode JSON- Throws:
IOException
-
serializeOrInvalidRequest
-