Require json when needed

This PR fixes commit list command since the modified function is called before requiring json library. The library is required in the subsequent function `paradox--get-tag-commit-alist`, which is called just after the fixed one.