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