Java String Decode decode(String s)

Here you can find the source of decode(String s)

Description

decode

License

Open Source License

Declaration

public static JsonNode decode(String s) throws IOException 

Method Source Code

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

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.io.IOException;

public class Main {
    private static final ObjectMapper om = new ObjectMapper();

    public static <T> T decode(String s, Class<T> cls) throws IOException {
        return om.readValue(s, cls);
    }//from   w w  w. j  a v  a  2 s .  c  om

    public static JsonNode decode(String s) throws IOException {
        return om.readTree(s);
    }
}

Related

  1. decode(String bytes)
  2. decode(String cipherText)
  3. decode(String in)
  4. decode(String name)
  5. decode(String s)
  6. decode(String s)
  7. decode(String s)
  8. decode(String s)
  9. decode(String s)