Add option to not build ui and just generate JSON file