I agree that this is very unpractical behaviour, and would like to get that fixed. Especially having the hostname in there is useless. I don't think there is an option to disable the namespace at the moment. I tried to remove the line which adds the namespace, and that does the trick! See the attached patch.
Unfortunately changing the default behaviour breaks all existing assertions using the current namespace. I tried to figure out when the namespace was put in there, and found this commit:
r1504 | dain.nilsson | 2009-04-09 12:34:08 +0200 (to., 09 april 2009) | 1 line Fixed some REST-related bugs.
|
There is no reference to which bugs have been fixed, so I'll drop Dain a line and see if he remembers.
A safe way to go is to add a configurable option to disable namespaces for JSON responses.