Skip to content

Instantly share code, notes, and snippets.

Shinichi Nishimura nshmura

View GitHub Profile
View gist:bdd2626aad0e0cbd6522
./gradlew -q dependencies app:dependencies
View PCategoryDataTypeAdapterTest.java
final GsonBuilder gsonBuilder = new GsonBuilder();
gsonBuilder.registerTypeAdapter(PCategoryData.class, new PCategoryDataTypeAdapter());
final Gson gson = gsonBuilder.create();
String json = "{categories:[{value: \"\"}]}";
PCityData pCityData = gson.fromJson(json, PCityData.class);
...
You can’t perform that action at this time.