E2E Forum › Modeling & Development › String forward slashes being escaped in classToJSON() › Reply To: String forward slashes being escaped in classToJSON()
Hi Alfred,
The jsonToClass() operation handles input strings with / as expected:
“relatedParty”:
[
{
“href”: “http://serverLocation:port/partyManagement/organization/Google”,
“role”: “Developer”
},
{
“href”: “http://serverLocation:port/partyManagement/organization/LG”,
“role”: “Manufacturer”
}
]
becomes:
href: Base Types.String = “http://serverLocation:port/partyManagement/organization/Google”
role: Base Types.String = “Developer”
href: Base Types.String = “http://serverLocation:port/partyManagement/organization/LG”
role: Base Types.String = “Manufacturer”
I’d expect to not have to escape the / on the classToJSON() call to be consistent with the jsonToClass() operation. No?
Thanks,
Cliff