improve generated JSON and give a sample