Details

    • Type: Bug
    • Status: Reopened
    • Priority: Later
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 8.0.0
    • Component/s: ZK Update Engine
    • Labels:
      None

      Description

      According to the spec. of JSON

      A value can be a string in double quotes, or a number, or true or false or null, or an object or an array.

      In the current ZK version, we used single quotes as a value which will throw an error at client when using the standard JS function JSON.parse() to parse with.

        Activity

        Hide
        jumperchen jumperchen added a comment -

        Fixed since 8/26/2015.
        For the old version of ZK Addons or Webapps, please use the following script to make it work backward compatiable.

        jq.evalJSON = function (str) {return (new Function('return (' + str +')'))();}
        
        Show
        jumperchen jumperchen added a comment - Fixed since 8/26/2015. For the old version of ZK Addons or Webapps, please use the following script to make it work backward compatiable. jq.evalJSON = function (str) { return ( new Function(' return (' + str +')'))();}
        Hide
        jumperchen jumperchen added a comment -

        Cannot support this, because ZK uses a lot of JS function code inside the JSON value, which is not allowed in JSON value format.

        Show
        jumperchen jumperchen added a comment - Cannot support this, because ZK uses a lot of JS function code inside the JSON value, which is not allowed in JSON value format.

          People

          • Assignee:
            jumperchen jumperchen
            Reporter:
            jumperchen jumperchen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

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