[TD-10088] added JSON interface based on headers