support for direct json