Java Json to Object deserializeJson(String content, Class valueType)

Here you can find the source of deserializeJson(String content, Class valueType)

Description

deserialize Json

License

Open Source License

Declaration

public static <T> T deserializeJson(String content, Class<T> valueType) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import com.fasterxml.jackson.databind.ObjectMapper;

import java.io.IOException;

public class Main {
    public static <T> T deserializeJson(String content, Class<T> valueType) throws IOException {
        return new ObjectMapper().readValue(content, valueType);
    }/*ww  w  . j ava  2s  .com*/
}

Related

  1. deserialize(JsonReader reader, Class type)
  2. deserialize(String json, Class clazz)
  3. deserialize(String json, Class targetType)
  4. deserialize(String jsonData, Class typeOfT)
  5. deserializeFromDataNode(JsonParser jp, DeserializationContext ctxt, String propertyName, TypeReference typeReference)
  6. json2List(String json, Class beanClass)
  7. json2map(String jsonStr)
  8. json2pojo(String jsonStr, Class clazz)
  9. jsonBigDecimal(JsonValue value)