Can someone assist me in converting a JSON object for use in CSS?
I've attempted to do this using Vue.js, creating a map legend with v-for to generate the legend. However, if there is an alternative method that allows me to take a JSON object and insert it into a style tag like:
{
"color" : "red",
"background" : "yellow"
}
<div style="JSON RIGHT HERE"></div>
Any assistance would be greatly appreciated!