Issue 12888 - Include template constraints in JSON output

https://issues.dlang.org/show_bug.cgi?id=12888