converted object to JSON