How can we put Query result in a table from java sdk?

n1ql
query

#1

As i can see the option of changing the format of the data into a table format in gui but, how can we do this from java application(SDK).
any help would be appreciated.


#2

Hi @kothamurali08719,

The “table” in the gui is just another way to look at the underlying data. It’s still JSON, but just displayed in a tabular format (which is sometimes easier to read, sometimes not).

What are you trying to accomplish within your Java application? If it’s just presentation related, then you can output JSON as an HTML table, for instance.