Open
Description
Describe the issue
loading data type as jsonb
, an extra unicode will be added: \u0001 (show in json result) or \u{01} (show in Xcode)
Vapor version
1.26.2
Operating system and version
macOS 26 DP Beta 1 and Ubuntu Linux 22.04
Swift version
macOS: 6.1.2, Ubuntu: swift-6.1.0-release
Steps to reproduce
- Upgrade all packages to latest version;
- Connect PostgreSQL and query a type as
jsonb
field; - the result ByteBuffer decode to String.self, an additional \u{01} will be displayed (in Xcode Console); return it as json to response, it will show \u0001 (additional)
- in Xcode Console

- in Postman response raw

- in DB (it is correct)

Additional notes
When I downgraded back to 1.24.0
, everything worked fine!!
If more information is needed, please let me know