How can I add a line item property in JSON format on Studio theme?

Can anyone help me add a line item property on some of my custom products? I successfully pulled the Liquid code from the UI generator… but the template that I am trying to add it to is JSON format.

<p class="line-item-property__field">
  <label for="color">Color</label>
  <input id="color" type="text" name="properties[Color]">
</p>

Is there a way to convert this to JSON? OR a different way that I should be going about this?
I am using the Studio design.
Any help is appreciated!!

1 Like

@TammyD1

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.