I have an object that comes when selecting a particular button.
The object is coming correct.
System.out.println(filter.getJsonObject("cadastro"));
Result:
{"id":1,"createdAt":"2017-12-22T14:00:55.86","nome":"teste"}
However, I need to get only the name, not the whole object, how can I do it?
I tried System.out.println(filter.getJsonObject("cadastro").getString("nome"));
but it did not work.
Thanks in advance.