A
A
Andrey Kanaev2016-11-24 05:46:04
Angular
Andrey Kanaev, 2016-11-24 05:46:04

How to get an object from json by its id?

There is json:

[
  {   
    "id": "1",
    "name": "Роман"
  },
  {   
    "id": "2",
    "name": "Инга"
  }
]

you need to get all the contents of the object by its id.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2016-11-24
@R0dger

LoDash to help you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question