Skip to content

When loading data type as jsonb, an extra unicode will be added: \u0001 #562

Open
@iWECon

Description

@iWECon

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

  1. Upgrade all packages to latest version;
  2. Connect PostgreSQL and query a type as jsonb field;
  3. 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
Image
  • in Postman response raw
Image
  • in DB (it is correct)
Image

Additional notes

When I downgraded back to 1.24.0, everything worked fine!!

If more information is needed, please let me know

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions