Deepak, > > The output you see is likely calling the XContentBuilder.*to*String method.
The output you want (the JSON string) is obtained by calling the XContentBuilder.string method instead. Brian -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7649ebf5-254b-4411-9d90-99bde1941208%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
