-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
JSON output of rfkill
is broken
#1339
Comments
karelzak
added a commit
that referenced
this issue
Jun 7, 2021
The bare array ({[...]}) for top level list of entries is invalid. It seems better to print empty string than nothing. This is workaround for broken utils, better is to define a table name. Addresses: #1339 Signed-off-by: Karel Zak <kzak@redhat.com>
Thanks for your report. |
Thank you for your fast response! I can confirm that |
karelzak
added a commit
that referenced
this issue
Jul 20, 2021
The bare array ({[...]}) for top level list of entries is invalid. It seems better to print empty string than nothing. This is workaround for broken utils, better is to define a table name. Addresses: #1339 Signed-off-by: Karel Zak <kzak@redhat.com>
karelzak
pushed a commit
that referenced
this issue
Jul 20, 2021
[kzak@redhat.com: - s/rfkill/rfkilldevices/] Fixes: #1339 Signed-off-by: Nicolai Dagestad <nicolai@dagestad.fr> Signed-off-by: Karel Zak <kzak@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since v2.37, running
rfkill -J
produces invalid JSON output:Not how the outer object contains a bare array (
{[...]}
) and not a key-value pair.Bisecting the issue between v2.36 and v2.37, 618a6cc seems to be the culprit.
The text was updated successfully, but these errors were encountered: