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

Extra space in serialized json #219

Open
CAFxX opened this issue May 29, 2017 · 0 comments
Open

Extra space in serialized json #219

CAFxX opened this issue May 29, 2017 · 0 comments

Comments

@CAFxX
Copy link

CAFxX commented May 29, 2017

I'm trying ffjson in a project of ours but found that it sometimes emits extra spaces after the opening brackets in the generated JSON:

{ "origin":"fake-origin-1","logMessage":{ "message":"aGVsbG8="}}

I couldn't quickly come up with a minimal test case, but I pushed my WIP branch to Github:

https://github.com/rakutentech/kafka-firehose-nozzle/blob/misc-improvements/ext/ext.go (struct definition)
https://github.com/rakutentech/kafka-firehose-nozzle/blob/misc-improvements/encoder_test.go#L11 (test case; see the extra space after the opening brackets)
https://github.com/rakutentech/kafka-firehose-nozzle/blob/misc-improvements/ext/ext_ffjson.go#L37 (ffjson-generated code showing the extra space)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant