The JSonSanitzer currently is in place to 'sanitize' invalid json that is being responded by the openshift service. It corrects erroneously quotes json objects with escaped quotes in it:
... "aJsonObjectHere": "{ \"aNestedProperty\" : \"withAStringValue\" }" ...
*This sanitizer should be able to handle valid and invalid json since openshift could fix their bug after we release our plugins. *
The current implementation would most likely sanitize string values erroneously, if they have escaped quotes in the value:
"aStringValueWithA\"Quote"
The above value would get transformed into an invalid value if the json object would be reported in a valid way (aka not quoted and the quotes in it not escaped):
... "aJsonObjectHere": { "aNestedProperty" : "withAStringValueWithA\"Quote" }
The above would become:
... "aJsonObjectHere": { "aNestedProperty" : "withAStringValueWithA"Quote" }
- is related to
-
OSJC-91 Openshift service: response to list cartridges is invalid Json
- Closed