storing data internally using json