json_design function

Convert design to JSON