I want to get the message by key-word in the json structure. For example, the json structure is:
[{ _id: 123, message: 'hello', username: '1' }, { _id: 456, message: 'world', username: '2'}
Now I want to get all the message and put them into an arrary. How to implement this in javascript? Thanks