Extract configuration options out to JSON file