Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2443

JSON parser cannot handle RegExp values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 5.4
    • None
    • tapestry-json
    • None

    Description

      If a JSON string contains a RegExp value, the parser fails and reports that the value is missing.

      java.lang.RuntimeException: Missing value at character 8 of {regex: /foo/}
      	at org.apache.tapestry5.json.JSONTokener.syntaxError(JSONTokener.java:384)
      	at org.apache.tapestry5.json.JSONTokener.nextValue(JSONTokener.java:301)
      	at org.apache.tapestry5.json.JSONObject.<init>(JSONObject.java:260)
      	at org.apache.tapestry5.json.JSONObject.<init>(JSONObject.java:295)
      

      Attachments

        1. tap5-json-regexp.groovy
          0.2 kB
          Jochen Kemnade

        Activity

          People

            Unassigned Unassigned
            jkemnade Jochen Kemnade
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: