enhanced support for json from tgkokk