There’s already a schema.org spec that defines a JSON-LD structured data that you can embed on every of your product page to provide a machine readable interface of your product.
For example, Google’s indexers already use this to surface pricing data. https://developers.google.com/search/docs/appearance/structu...