it's up to the webmaster how she defines microdata in markup, can be header meta or inline attrs. The lib can them all, I think, so don't restrict yourself to the json representation (it's only recommended)
https://developers.google.com/search/docs/guides/intro-structured-data#structured-data-format