Restrictions and Requirements Because of system behavior of the SIMATIC PLC and because datatypes of strings / characters have been chosen to be String / Byte (because of memory optimization) it is only possible to serialize/ deserialize streams with ASCII encoding. Any other encoding will lead to undefined behavior and might cause issues while serializing/ deserializing. Additionally, the length of strings (e.g. values of XML / JSON elements/ attributes) is restricted to a maximum of 256 characters. There is no workaround for these restrictions; if the functionality is required the user must adjust the library code. Requirements JSON The incoming JSON stream must be formatted in a compressed form: • Line breaks are not allowed • No spaces or whitespaces outside of values This format has been chosen to optimize the use of memory and performance for serialization and deserialization. Serialization will always output a compressed format. When the input is not compressed the behavior of the function is undefined and might lead to issues while deserializing.
https://object.ceph-waw3.hswaw.net/mastodon-prod/media_attachments/files/115/701/178/578/692/290/original/9d2b9686c47872ed.png