Actual widget output
Interactive HTML utility

Turn JSON into data attributes.

Enter a simple JSON object and press Generate attributes. This interactive example runs the actual module script in your browser and produces escaped attribute text.

Example developer tool

Generate data attributes

Create attributes from sample JSON

Generate HTML data attributes

Result

Default JSON example; press Generate attributes to see the escaped output.