Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2861

JSON objects in parsed with doublequotes (")

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.0
    • 8.0.0
    • None
    • Security Level: Jimmy
    • ZK 8.0.1

      When using a JSON object in a zul page through data binding, the JSON object is parsed with double quotes (") which render it incorrect.

      step to reproduce :
      load the attached example
      observe the source of the div, find the testjson attribute

      value is similar to :
      <div id="XXXXXX" class="z-div" testjson="

      {" id1":"value1","id2":"value2","id3":"value2"}

      "=""><span id="XXXXXX" class="z-label">check this div attributes</span></div>

      Data-handlers still work, but the resulting HTML is incorrect.

            jumperchen jumperchen
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h