{
    "content": [
        {
            "type": "text",
            "text": "# Image::ExifTool::Import (perldoc)\n\n## NAME\n\nImage::ExifTool::Import - Import CSV and JSON database files\n\n## SYNOPSIS\n\nuse Image::ExifTool::Import qw(ReadCSV ReadJSON);\n$err = ReadCSV($csvFile, \\%database);\n$err = ReadJSON($jsonfile, \\%database);\n\n## DESCRIPTION\n\nThis module contains routines for importing tag information from CSV (Comma Separated Value) and\nJSON (JavaScript Object Notation) database files.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **EXPORTS**\n- **METHODS**\n- **AUTHOR**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Image::ExifTool::Import",
        "section": "",
        "mode": "perldoc",
        "summary": "Image::ExifTool::Import - Import CSV and JSON database files",
        "synopsis": "use Image::ExifTool::Import qw(ReadCSV ReadJSON);\n$err = ReadCSV($csvFile, \\%database);\n$err = ReadJSON($jsonfile, \\%database);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "ExifTool",
                "section": "3pm",
                "url": "https://www.chedong.com/phpMan.php/man/ExifTool/3pm/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "EXPORTS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 21,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Image::ExifTool::Import - Import CSV and JSON database files\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Image::ExifTool::Import qw(ReadCSV ReadJSON);\n\n$err = ReadCSV($csvFile, \\%database);\n\n$err = ReadJSON($jsonfile, \\%database);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module contains routines for importing tag information from CSV (Comma Separated Value) and\nJSON (JavaScript Object Notation) database files.\n",
                "subsections": []
            },
            "EXPORTS": {
                "content": "Exports nothing by default, but ReadCSV and ReadJSON may be exported.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "ReadCSV / ReadJSON\nRead CSV or JSON file into a database hash.\n\nInputs:\n0) CSV file name or file reference.\n\n1) Hash reference for database object.\n\n2) Optional string used to represent an undefined (missing) tag value. (Used for deleting\ntags.)\n\n3) For ReadCSV this gives the delimiter for CSV entries, with a default of \",\". For ReadJSON\nthis is the character set for converting Unicode escape sequences in strings, with a default\nof \"UTF8\". See the ExifTool Charset option for a list of valid character sets.\n\nReturn Value:\nThese functions return an error string, or undef on success and populate the database hash\nwith entries from the CSV or JSON file. Entries are keyed based on the SourceFile column of\nthe CSV or JSON information, and are stored as hash lookups of tag name/value for each\nSourceFile.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Copyright 2003-2022, Phil Harvey (philharvey66 at gmail.com)\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Image::ExifTool(3pm)\n",
                "subsections": []
            }
        }
    }
}