Q:

How to filter json object from some objects. (Select only some values)

I need a help! I have a json object like this:
(res.json(record[0].content))
I need to transform this json to another view... Select only some values... I would be grateful for any help!
[
    {
        "classId": 0,
        "type": "d",
        "cluster": -2,
        "position": 1,
        "version": 0,
        "value": {
            "@type": "d",
            "rid": "#15:0",
            "class": "Currency",
            "Name_currency": "Фунт"
        }
    },
    {
        "classId": 0,
        "type": "d",
        "cluster": -2,
        "position": 2,
        "version": 0,
        "value": {
            "@type": "d",
            "rid": "#15:1",
            "class": "Currency",
            "Name_currency": "Доллар"
        }
    },
    {
        "classId": 0,
        "type": "d",
        "cluster": -2,
        "position": 3,
        "version": 0,
        "value": {
            "@type": "d",
            "rid": "#15:2",
            "class": "Currency",
            "Name_currency": "Гривна"
        }
    }
]

How can I get this? Only values of my json object?
[
    {
        "@type": "d",
        "rid": "#15:0",
        "class": "Currency",
        "Name_currency": "Фунт"\
    },
    {
        "@type": "d",
        "rid": "#15:1",
        "class": "Currency",
        "Name_currency": "Доллар"
    },
    {
        "@type": "d",
        "rid": "#15:2",
        "class": "Currency",
        "Name_currency": "Гривна"
    }
]

A:

Use Array.prototype.map on your backend (Node.js) site:
res.json(record[0].content.map(function(e) {
    return e.value;
}));

