DEV Community

Discussion on: How to post json with comments?

Collapse
 
isherwood profile image
Clint Buhs • Edited

It's not a spiffy solution, but you might just have to add keys to your object just for the purpose of commenting and prefix the values with double slashes. My only other thought is to use multiple code blocks, alternating between json and js as needed.