I want to convert a hashmap to a json object or a json string in the painless script.
I know I can use the {{#tojson}} to convert it in the mustache. But I need add slash before each double-quote in the output.
Is there any way can do it?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.