Question: [![enter image description here](https://i.stack.imgur.com/QGivh.png)](https://i.stack.imgur.com/QGivh.png)

I want to get the value of isSeen node in Android Studio. The M6F2mJjQ8uGPXAynZzV is an id of the message and change message to message. And I want to get this value in an Adapter class.

Answer: 
I would recommend to use objects in javascript to handle your case as mentioned below

In your route file,no need of extension ejs 

```html
router.get('/:animal', function(req, res) {
 var animal = req.params.animal;
 var cats = [ { name: 'Mittens', age: 7 }, { name: 'Kitty', age: 11 }, { name: 'Smoogy', age: 3 } ];
 var dogs = [ { name: 'Rusty', age: 14 }, { name: 'Matt', agee: 7 }, { name: 'Holly', age: 9 } ];

 var map = { cats: cats, dogs: dogs };

 res.render('abc', { animals: map[animal] });
});
```

Ejs view file as below:

```html
<table>
    <tbody>
<% animals.forEach(function(animal) { %>
    <tr>
      <td><%= animal.name %></td>
      <td><%= animal.age %></td> 
    </tr>
  <% }); %> 
</tbody>
</table>
```

Then hit the endpoints, can change based on your port and host
<http://localhost:3000/dogs>

<http://localhost:3000/cats>
COmbine the 2 arrays into one big

```js
var animals=cats.push(...dogs)
res.render("abc.ejs", {animal , animals });

```