add case for json dumping