Added export as json feature