JSON-LD output
Where it goes. Paste the whole block, including the <script> tags, into your page HTML, ideally in the <head>.
Then test it. Paste your page URL into Google's Rich Results Test to confirm eligibility. Valid markup is necessary but not sufficient. Google decides rich results based on content quality too.