Extract JSON-LD from html using Apache Any23

My aim is to extract microdata from webpages. I'm using the code mentioned in this SO question. I'm using apache any23 cli library dependency in my spring project. By using this, I'm able to extract the HTML5 microdata (Schema.org) from webpages. But, I can't extract the JSON-LD format present in the webpages. When I checked Apache Any23's documentation, JSON-LD format is supported in it. Didn't find any further documentations on it. Any help will be appreciated.