this utility function examines the incoming JSON, returns exactly and only an array of selector objects
readAndStandardizeJSONStyleFile(filename)a string with a cytoscape.js JSON graph
a json file
there are at least two JSON object structures used to specify style (see function comments in code for more details):
simple: an array of selector objects
more complex, exported from the Cytoscape desktop application this is also an array of objects, one named "style" which (like the simple format described above) contains an array of selectors.