Having some trouble with a JSON object and retrieving values.
This is the syntax that works for getting the data I need.
dataJSON.companies[0].fields.Internet.length
I want to dynamically evaluate the object using a string variable, like this...
var mediaType = 'Internet';
dataJSON.companies[0].fields+mediaType+.length;
Is there any way to achieve this? I'm stuck.