added json display code