Gson.fromJson()轉換數據庫中的json數據

import com.google.gson.JsonElement;google

public class Main {
    public static void main(String[] args) {blog

        Object tagSet = "[{tagk:host,tagv:system}]";class

        System.out.println(new Gson().fromJson(tagSet.toString(), JsonElement.class));import

    }
}im

相關文章
相關標籤/搜索