Added try/catch when reading json

This will catch when an inventory file has corrupt json text.