fixed resourceModel by stringifying json before sending to cloudmux