Forum Discussion

viji28's avatar
viji28
New Contributor
4 years ago
Solved

Retrieve the key value by passing another key value in json

My Json looks like this πŸ™‚
{ β€œmain” :[
{
β€œCM”: β€œT”,
β€œTM”: β€œβ€
},
{
β€œCM”: β€œ100000”,
β€œTM”: β€œ9999”
},
{
β€œCM”: β€œ200000”,
β€œTM”: β€œβ€
} ]
}
This is stored in an test.expr file.

I have the CM values coming from the previous snap. What i would like to achieve is - I would like to pass 100000 to CM and retrieve 9999 as result.

How can I achieve this ?