successfully serializing form input --> JSON object