Thanks. Yes I'm using the Java client. And yes I read the doc. It also says " Instances of this class returned by API clients keep a reference to the client's JsonpMapper and can be converted to arbitrary types using to(Class) without requiring an explicit mapper." I ran a test and I'm able to use the following to get the json string from a JsonData.
Looking at the JavaDoc for to(Class) it states that you need to specify a mapper:
Converts this object to a target class. A mapper must have been provided at creation time.
Throws: java.lang.IllegalStateException - if no mapper was provided at creation time.
Can you see if specifying an explicit mapper works?
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.