pass a JSON object to create a HTML style string.