ajax forms formatted in json to reduce data being transferred