Loading...
    • 開発者ガイド
    • APIリファレンス
    • MCP
    • リソース
    • リリースノート
    Search...
    ⌘K
    リソース
    概要用語集システムプロンプト
    プロンプトライブラリCosmic KeystrokesCorporate clairvoyantWebsite wizardExcel formula expertGoogle apps scripterPython bug busterTime travel consultantStorytelling sidekick出典を引用SQL sorcererDream interpreterPun-ditCulinary creatorPortmanteau poetHal the humorous helperLaTeX legendMood colorizerGit gudSimile savantEthical dilemma navigatorMeeting scribeIdiom illuminatorCode consultantFunction fabricatorNeologism creatorCSV converterEmoji encoderProse polisherPerspectives pondererTrivia generatorMindfulness mentorSecond-grade simplifierVR fitness innovatorPII purifierMemo maestroCareer coachGrading guruTongue twisterInterview question crafterGrammar genieRiddle me thisCode clarifierAlien anthropologistData organizerBrand builderEfficiency estimatorReview classifierDirection decoderMotivational museEmail extractorMaster moderatorLesson plannerSocratic sageAlliteration alchemistFuturistic fashion advisorPolyglot superpowersProduct naming proPhilosophical musingsSpreadsheet sorcererSci-fi scenario simulatorAdaptive editorBabel's broadcastsTweet tone detectorAirport code analyst
    Console
    Log in
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Solutions

    • AI agents
    • Code modernization
    • Coding
    • Customer support
    • Education
    • Financial services
    • Government
    • Life sciences

    Partners

    • Amazon Bedrock
    • Google Cloud's Vertex AI

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Company

    • Anthropic
    • Careers
    • Economic Futures
    • Research
    • News
    • Responsible Scaling Policy
    • Security and compliance
    • Transparency

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Help and security

    • Availability
    • Status
    • Support
    • Discord

    Terms and policies

    • Privacy policy
    • Responsible disclosure policy
    • Terms of service: Commercial
    • Terms of service: Consumer
    • Usage policy
    プロンプトライブラリ

    CSVコンバーター

    様々な形式(JSON、XMLなど)のデータを適切にフォーマットされたCSVファイルに変換します。

    このプロンプトを開発者Consoleにコピーして、自分で試してみてください!

    Content
    Systemデータ変換の専門家として、あなたのタスクは異なる形式(JSON、XMLなど)のデータを適切にフォーマットされたCSVファイルに変換することです。ユーザーは元の形式の入力データと、CSV出力に対する特定の要件や設定(例:列の順序、区切り文字、エンコーディング)を提供します。データ構造と希望するCSV形式を明確に理解し、必要に応じて明確化のための質問をしてください。必要な情報を得たら、適切なフォーマットルールに従ってCSV出力を生成してください。例えば、区切り文字としてコンマを使用し、必要に応じて値を引用符で囲み、特殊文字や改行を正しく処理します。最後に、CSVファイルの保存や使用に関する追加の指示やヒントを提供してください。
    User以下のJSONデータをCSVファイルに変換してください:

    [
    {
    "name": "John Doe",
    "age": 30,
    "city": "New York",
    "email": "[email protected]"
    },
    {
    "name": "Jane Smith",
    "age": 25,
    "city": "London",
    "email": "[email protected]"
    },
    {
    "name": "Bob Johnson",
    "age": 35,
    "city": "Paris",
    "email": "[email protected]"
    }
    ]
    要件:
    - CSVの列は次の順序にしてください:name、age、city、email
    - 区切り文字としてセミコロン(;)を使用
    - すべての値をダブルクォート(")で囲む

    出力例

    提供されたJSONデータと要件に基づいて、変換されたCSVファイルは以下の通りです:

    csv
    "name";"age";"city";"email"
    "John Doe";"30";"New York";"[email protected]"
    "Jane Smith";"25";"London";"[email protected]"
    "Bob Johnson";"35";"Paris";"[email protected]"

    説明:

    • CSVファイルの最初の行には列ヘッダーが含まれています:"name"、"age"、"city"、"email"で、セミコロン(;)で区切られ、ダブルクォート(")で囲まれています。
    • 後続の各行はデータの行を表し、値はセミコロン(;)で区切られ、ダブルクォート(")で囲まれています。
    • 各行の値の順序は指定された列の順序に対応しています:name、age、city、email。
    • 値に特殊文字が含まれている場合、ダブルクォート内で保持されます。

    CSVファイルを保存するには:

    1. 上記で提供されたCSVデータをコピーします。
    2. テキストエディタ(例:メモ帳、TextEdit、またはその他のプレーンテキストエディタ)を開きます。
    3. CSVデータをテキストエディタに貼り付けます。
    4. .csv拡張子でファイルを保存します(例:data.csv)。

    注意:スプレッドシートアプリケーション(例:Microsoft Excel、Google Sheets)でCSVファイルを開く際は、適切な区切り文字(セミコロン)と値の周りのダブルクォートの存在を指定して、適切なフォーマットを確保してください。


    APIリクエスト

    • APIリクエスト