- assigned_to: nobody --> aalmiray
I have a java object that contains a regular expression property to handle form validation. I'd like to add front-end code to perform the same validation to make my application a little snappier. However, the string "[0-9]" gets processed as a "number array" in the String block in JSONArray._processValue. The result is JSON of the form prop: [ "0-9" ] instead of "[0-9]", which obviously breaks the javascript regular expression processing. Could we use JsonConfig to turn off this behaviour (similar to the fix described in 2140653)? My current work-around is to add another property to the Java object called "propJson" that escapes the square brackets in "prop", then use a filter to avoid serializing "prop", and then a key processor to change "propJson" -> "prop". Ugly!