Add json output to popular listing, fixes #411