Update set method to use JsonHelper.toJSON()