Viewing JSON result or Object of ES query?

I apologize if this is a stupid question, newcomer here.

I have a ES cluster that I'm trying to search through and view the result in JSON format. Right now, this is what I'm doing in a very basic example.

            var settings = new ConnectionSettings(new Uri("http://localhost:9200"))
            var client = new ElasticClient(settings);
            var person = new Person
                Id = 1,
                FirstName = "Ronald",
                LastName = "Salerno"
            var indexResponse = client.IndexDocument(person);
            var searchResponse = client.Search<Person>(s => s
                .Query(q => q
                    .Match(m => m

            var people = searchResponse.Documents;

However, this is returning


I understand I have to serialize this in some way but I haven't been able to find anything in the documentation that works for me.

How exactly can I view the JSON results or at least the Person object that I'm searching for?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.