Allow omitting search text to just dump all entries. Added JSON format.
Added comments about JSON reporting, fixed formatting.