I have a json file like this:
{
id1: ["text1" , "content1" ],
id2: ["text2" , "content2" ],
id3: ["text3" , "content3" ]
}
var number =2;
How can I find property of json with id number equal to "number" and retrieve its 2 element "text2" and "content2".