How can I search the keyword from JSON format. using jquery or javascript
I have a JSON content. From that I need to search and get the id for the searched keyword.
Keyword: "authority" = > I want to get id as 4
Keyword: "basic" = > I want to get id as 3
{
"data": {
"1":[
{
"id":"3",
"title":"my title",
"content":"this is very basic sample content"
},
{
"id":"4",
"title":"My sample title and text",
"content":"renewed by a licensing authority may be signed by such officer by the State Government.<p></p>"
}
]
}
}