Package io.fathom.cloud.json

Examples of io.fathom.cloud.json.GsonFieldNamingStrategy


public final class GsonMessageBodyReaderWriter implements MessageBodyWriter<Object>, MessageBodyReader<Object> {
    private Gson gson;

    private Gson getGson() {
        if (gson == null) {
            FieldNamingStrategy fieldNamingStrategy = new GsonFieldNamingStrategy();

            GsonBuilder gsonBuilder = new GsonBuilder();
            gsonBuilder.setFieldNamingStrategy(fieldNamingStrategy);

            gsonBuilder.registerTypeAdapter(Date.class, new DateTypeAdapter());
View Full Code Here

TOP

Related Classes of io.fathom.cloud.json.GsonFieldNamingStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.