Work around Perl's weird crap
Strip trailing & in post data
More formatting
Avoid calling json_object_array_get_idx on non-array objects, bad things happen...