Re-writing flange calc to JSON