Package org.structr.rest.adapter

Examples of org.structr.rest.adapter.FrameworkExceptionGSONAdapter


      // create GSON serializer
      final GsonBuilder gsonBuilder = new GsonBuilder()
        .setPrettyPrinting()
        .serializeNulls()
        .registerTypeHierarchyAdapter(FrameworkException.class, new FrameworkExceptionGSONAdapter())
        .registerTypeAdapter(IJsonInput.class, jsonInputAdapter)
        .registerTypeAdapter(Result.class, resultGsonAdapter);


      final boolean lenient = Boolean.parseBoolean(StructrApp.getConfigurationValue("json.lenient", "false"));
View Full Code Here

TOP

Related Classes of org.structr.rest.adapter.FrameworkExceptionGSONAdapter

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.