cppcheck: Add cppcheck project file.
json: Fix Cppcheck warnings.