Java tutorial
/******************************************************************************* * Copyright (c) 2014 The Hackerati, Inc. * This project is distributed under the terms of the MIT license. See the file LICENSE or http://opensource.org/licenses/MIT. ******************************************************************************/ package com.hackerati.android.user_sdk.gson; import com.google.gson.FieldNamingPolicy; import com.google.gson.Gson; import com.google.gson.GsonBuilder; public class HGsonBuilder { public static final Gson create() { final GsonBuilder builder = new GsonBuilder(); builder.setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES); return builder.create(); } }