"names": [ { "id": 17, "user_id": 9, "code": "de", "name": "Ich bin Hans", "created_at": "2017-07-31 12:43:19", "updated_at": "2017-07-31 12:43:19" }, { "id": 18, "user_id": 9, "code": "en", "name": "My name is Hans", "created_at": "2017-07-31 12:43:19", "updated_at": "2017-07-31 12:43:19" } ]
Is there any method for getting a JSON object with code='en' from the above JSON array in jQuery?
I could do this with a for loop, but I thought there might be an easier way to do this.
source share