Hi everyone,
I have found a problem when serializing a map to JSON.
I use the following map as request body for the http-client:
map { 'username' : "aaa", 'password' : "bbb", 'grant_type' : 'password' } => json:serialize()
In 10.4 everything works fine. In 12.0 this now leads to an error when I send the request. (Response from service: <code type="number">400</code><message>Invalid json message received</message>)
It seems that the request body is being escaped twice when interacting with the http client. If I omit json:serialize(), it works fine in BaseX 12.
I would expect json:serialize() to recognize the map(*) data type and serialize it correctly.
Best regards Andreas