Fix for Issue #5. Updating postField to json.