Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3433

JSONValidationInterceptor should generate valid JSON responses

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.1.8.1
    • 2.3.1
    • Plugin - JSON
    • struts-json-plugin 2.1.8.1

    Description

      The method protected String buildResponse(ValidationAware validationAware) in org.apache.struts2.interceptor.validation.JSONValidationInterceptor should generate valid JSON responses, right now it generates json-commenting responses but this could be worst http://trac.dojotoolkit.org/ticket/6380

      In other side it breaks compatibillity with other frameworks like JQuery 1.4 (version 1.3 allow to parse non strict JSON) http://www.neeraj.name/2010/01/15/handling-json-parsing-natively-in-jquery-1-4-and-what-changed-from-jquery-1-3.html.

      thank you

      Attachments

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              nickmancol Nicolas Bohorquez Gutierrez
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: