Search JSON with a string and get the line number in javascript
I have a JSON and a target string. I want to search the all the keys in the JSON file for the target string and get the line number where there is a match. { "name": "John Doe", "age": 30,…