-
Notifications
You must be signed in to change notification settings - Fork 4
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
Validators say osxmetadata.json is malformed JSON #57
Comments
Thanks for the detailed report. The basic problem is that technically JSON expects an array of values (enclosed in square brackets) when there is more than one record but osxmetadata writes each file record as a separate JSON record per line without the syntax of a JSON array. Each record (line) is valid JSON but not the whole file. I could change this easily but detecting the old style vs the new style would be difficult. The format was designed to be very simple and works fine for osxmetadata. I'll have to think on this to decide if it's worth changing. |
I decided it was better to have well-formed JSON than to keep the existing format so v0.99.38 will silently upgrade any |
@all-contributors please add @porg for bug |
I've put up a pull request to add @porg! 🎉 |
👍 Thanks for the credits! 😉 |
Today via pipx I upgraded osxmetadata to v1.0.0 and it created a wellformed JSON which my QuickLookJSON shows just nicely. |
@porg Great! Glad it's working well now. |
Foreword
How I noticed
Other checks
Followup
find /Volumes/yourVolume/ -name ".osxmetadata.json" -exec "<do the fixing/corrections>"
The text was updated successfully, but these errors were encountered: