Moves json method to Room.