Class JsonHelper


  • public class JsonHelper
    extends Object
    • Method Detail

      • returnJsonResponse

        public static void returnJsonResponse​(javax.servlet.http.HttpServletResponse response,
                                              com.opensymphony.webwork.dispatcher.json.JSONObject json)
                                       throws com.opensymphony.webwork.dispatcher.json.JSONException,
                                              IOException
        Throws:
        com.opensymphony.webwork.dispatcher.json.JSONException
        IOException
      • buildJsonObject

        @NotNull
        public static @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject​(Object bean,
                                                                                                   String... properties)
      • buildJsonObject

        @NotNull
        public static @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject​(Object bean,
                                                                                                   Iterable<String> properties)