make server understand JSON