add load_json_or_raw for CLI usage