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

fix malformed json for empty row {0} to "{0}0" #2588

Merged
merged 1 commit into from
Aug 5, 2023

Conversation

atlanticn
Copy link
Contributor

@atlanticn atlanticn commented Aug 4, 2023

When using
rtl_433 -F json -X 'n=raw,m=FSK_MC_ZEROBIT'
sometimes rtl_433 outputs json containing an invalid dictionary:
"codes" : [{0}]

Fix the source to output "{0}0" in case of an empty row.

Closes #2577

@zuckschwerdt
Copy link
Collaborator

Can you check that added lines don't have trailing whitespace?

When using
rtl_433 -F json -X 'n=raw,m=FSK_MC_ZEROBIT'
sometimes rtl_433 outputs json containing an invalid dictionary:
"codes" : [{0}]

Fix the source to output "{0}0" in case of an empty row.
@atlanticn
Copy link
Contributor Author

removed whitespace, pull request updated.

@zuckschwerdt zuckschwerdt merged commit fc727b3 into merbanan:master Aug 5, 2023
5 checks passed
@atlanticn atlanticn deleted the fixjson branch August 5, 2023 14:59
andrewjw pushed a commit to andrewjw/rtl_433 that referenced this pull request Sep 29, 2023
Fix the the output to "{0}0" in case of an empty row.
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

Successfully merging this pull request may close these issues.

bug: malformed json output
2 participants