better json formatting of request bodys