Let's asume that I have json variable:
var json ={"A":"a","B":"b","x":"y","a":"b"}
When I want to refer to A i just write json.A
How to do it when I have key in a variable, ie:
var key = "A";
Is there any function that returns value or null (if key isn't in json)?