Here you can find the source of getJsonValueFieldName(String className)
public static String getJsonValueFieldName(String className)
//package com.java2s; //License from project: Apache License public class Main { public static String getJsonValueFieldName(String className) { switch (className) { case "java.net.URL": return "toString"; case "java.lang.StringBuilder": return "toString"; case "java.lang.StringBuffer": return "toString"; case "java.util.UUID": return "toString"; case "java.util.Locale": return "toString"; case "com.google.gson.JsonElement": return "toString"; case "com.google.gson.JsonPrimitive": return "toString"; case "java.util.Currency": return "toString"; case "java.net.Inet4Address": return "hostAddress"; case "java.net.URI": return "toURL"; }//from w ww . j a va 2 s. co m return null; } }