added json data structure for pin management