using JSON instead of url encoding

certain types of data not passed successfully without this. arrays of
objects for instance.