{"action":"closed","issue":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1142","labels_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1142/labels{/name}","comments_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1142/comments","events_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/1142/events","html_url":"https://github.com/cytoscape/cytoscape.js/issues/1142","id":113912392,"number":1142,"title":"selector strings with multiple classes get corrupted in cy.json() output","user":{"login":"smpaley","id":4097327,"avatar_url":"https://avatars.githubusercontent.com/u/4097327?v=3","gravatar_id":"","url":"https://api.github.com/users/smpaley","html_url":"https://github.com/smpaley","followers_url":"https://api.github.com/users/smpaley/followers","following_url":"https://api.github.com/users/smpaley/following{/other_user}","gists_url":"https://api.github.com/users/smpaley/gists{/gist_id}","starred_url":"https://api.github.com/users/smpaley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smpaley/subscriptions","organizations_url":"https://api.github.com/users/smpaley/orgs","repos_url":"https://api.github.com/users/smpaley/repos","events_url":"https://api.github.com/users/smpaley/events{/privacy}","received_events_url":"https://api.github.com/users/smpaley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/labels/bug","name":"bug","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/milestones/34","html_url":"https://github.com/cytoscape/cytoscape.js/milestones/2.5.0","labels_url":"https://api.github.com/repos/cytoscape/cytoscape.js/milestones/34/labels","id":1097430,"number":34,"title":"2.5.0","description":"","creator":{"login":"maxkfranz","id":989043,"avatar_url":"https://avatars.githubusercontent.com/u/989043?v=3","gravatar_id":"","url":"https://api.github.com/users/maxkfranz","html_url":"https://github.com/maxkfranz","followers_url":"https://api.github.com/users/maxkfranz/followers","following_url":"https://api.github.com/users/maxkfranz/following{/other_user}","gists_url":"https://api.github.com/users/maxkfranz/gists{/gist_id}","starred_url":"https://api.github.com/users/maxkfranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxkfranz/subscriptions","organizations_url":"https://api.github.com/users/maxkfranz/orgs","repos_url":"https://api.github.com/users/maxkfranz/repos","events_url":"https://api.github.com/users/maxkfranz/events{/privacy}","received_events_url":"https://api.github.com/users/maxkfranz/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":63,"state":"open","created_at":"2015-05-05T18:44:37Z","updated_at":"2015-10-28T20:55:35Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-10-28T20:13:47Z","updated_at":"2015-10-28T20:55:35Z","closed_at":"2015-10-28T20:55:35Z","body":"If my stylesheet has a selector listing multiple classes, e.g. \".class1.class2\", all works fine for the most part: as I would expect, only nodes. that have both classes get the specified styling.  However, when I call cy.json() on the graph, in place of that selector, the output instead contains \".class1.class1\".\r\n\r\nI verified this by extending your style demo (http://jsbin.com/gist/b7c65115947d9e0e8ec8?js,console,output), adding a single selector:\r\n\r\n.selector('.faded.black')\r\n      .css({'background-color':'black'})\r\n\r\nThe result after invoking cy.json() at the console contained the following instead:\r\n\r\n{\r\n  selector: \".faded.faded\",\r\n  style: [object Object] {\r\n    background-color: \"black\"\r\n  }\r\n\r\n"}}