Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] JSONWriter.writeNameValue is broken #3224

Open
mpfaff opened this issue Dec 28, 2024 · 0 comments
Open

[BUG] JSONWriter.writeNameValue is broken #3224

mpfaff opened this issue Dec 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mpfaff
Copy link

mpfaff commented Dec 28, 2024

问题描述

The implementation of JSONWriter.writeNameValue is broken. It is missing a call to writeColon between the writeName and writeAny.

环境信息

  • OS信息: macOS Sequoia
  • JDK信息: OpenJDK 21
  • 版本信息:Fastjson2 2.0.53

重现步骤

  1. Call writeNameValue("foo", "bar") on a JSONWriter
  2. Observe that the written JSON is missing a colon
    "foo""bar"
    

期待的正确结果

"foo": "bar"

相关日志输出

N/A

附加信息

N/A

@mpfaff mpfaff added the bug Something isn't working label Dec 28, 2024
mpfaff added a commit to mpfaff/fastjson2 that referenced this issue Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant