Json
This class is used to specify JSON strings that when transformed into JSON, remain JSON strings.
Consider the following MATLAB example where a string is transformed both directly, and as part of a Json
object:
str = '{"test":100, "space":"station"}';
obj = componentProperties.Json(str);
>> disp(jsonencode(str))
"{\"test\":100, \"space\":\"station\"}"
>> disp(jsonencode(obj))
{"test":100, "space":"station"}
This class is (among others) useful for the Hidden component and for defining custom component Validation.