On POST loop through parms and return as JSON