Author: halfcountplus
Description:
Here's an example:
{
"label": "Follow",
"shortdesc": "Implements "tail -f" functionality",
"uri" : "http://localhost/wiki/index.php?title=Follow",
}This is output from {{#ask[[someprop::someval]] | ?shortdesc=}}. "Shortdesc" is of type String, so it should be expected to possibly contain quotes, as above. However, this short circuits the decoding of the JSON -- eg, php's own decode_json will fail here and return NULL. Parsing the reply to escape the quotes -- so: "Implements \"tail -f\" functionality" corrects the issue and decode_json works properly. Obviously, SMW should not be providing bad JSON data!
Version: unspecified
Severity: normal