fix json output (allies).

report error for bad json files (template).
fix a crash (battles).
clean reports when no things have no info.