[REST] add JSON support for /rest/headers/