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"))
                .DefaultIndex("people");
            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
                .From(0)
                .Query(q => q
                    .Match(m => m
                        .Query("Ronald")
                    )
                )
            );

            var people = searchResponse.Documents;
            Console.WriteLine(people);
        }

However, this is returning

System.Collections.Generic.List`1[es_apitesting.Person]

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.