If spider.man is an object, then i think what you want to do is
comics.title.[spider.man]
However, if spiderman isn’t an object.. and comics is an array of objects, and what you’re actually wanting to do is filter for the comic object where the title is spider.man then you probably want to use the jsonpath filter eg
$.comics.[?(@.title==“spider.man”)]
You should also use any online json path evaluator to test the jsonpath expression against your json to see it works as expected.