Serialize forms into JSON object