Return json string if requested for setData REST call