Issue 12888 - Include template constraints in JSON output

https://issues.dlang.org/show_bug.cgi?id=12888
It would be better to append test case at the end of `json.d` instead of inserting here, to avoid unnecessary changes of "line" property.