$ ls sum

Sum everything that matches *.json:

ls -l * | awk '{sum += $5}; END {print sum}'