Added JSON support for text-renderer