PJSON support for chat API