If you are just trying to work out the percentage sold for one single product you don't need to use JSON. You could just add a metafield onto product with the starting value, then do some math to figure out the percentage left. This could be handled with liquid.
↧