Implemented json generator