Dushistov / sdcv

https://dushistov.github.io/sdcv/
GNU General Public License v2.0
294 stars 42 forks source link

Add json output #22

Closed ecraven closed 7 years ago

ecraven commented 7 years ago

Add json output (compatible with what koreader sdcv has), but without a library.

ecraven commented 7 years ago

see #6

ecraven commented 7 years ago

Everything should work fine, only the order of the dictionaries in json is different, so I need to adjust the test for that. Please review the PR, I'll fix the test, but I'll only be back at a computer next week :-/

ecraven commented 7 years ago

OK, tests finish fine now, if possible please review again. I've included 5 or so whitespace-only indentation changes, sorry for not putting them into their own commit. json output should work fine now, the "Nothing similar to..." and "save to ..." messages are not shown if -j is active.

ecraven commented 7 years ago

just to note it somewhere, I've included jq in the travis file, and use it to normalize and sort all json output, so that it can be compared better.