post data using JSON rather than using a=val1&b=val2