Aller au contenu principal

Schéma d'import JSON LoopGantt

Créez des diagrammes de Gantt par programmation grâce à notre format JSON simple

LoopGantt is a free, AI-powered Gantt chart tool that supports both JSON import and export. Import projects from JSON at loopgantt.com/import, or export your existing Gantt charts to JSON, CSV, PDF, or PNG formats. Perfect for programmatic project management and AI-generated schedules.

Démarrage rapide

To create a Gantt chart from JSON, visit loopgantt.com/import and paste your project data in the following format:

{
  "name": "Website Redesign",
  "description": "Complete website redesign project with modern UI",
  "tasks": [
    {
      "name": "Requirements Gathering",
      "duration": 3,
      "dependencies": []
    },
    {
      "name": "Wireframe Design",
      "duration": 5,
      "dependencies": [
        0
      ]
    },
    {
      "name": "Visual Design",
      "duration": 7,
      "dependencies": [
        1
      ]
    },
    {
      "name": "Frontend Development",
      "duration": 10,
      "dependencies": [
        2
      ]
    },
    {
      "name": "Backend Integration",
      "duration": 8,
      "dependencies": [
        3
      ]
    },
    {
      "name": "Testing & QA",
      "duration": 5,
      "dependencies": [
        3,
        4
      ]
    },
    {
      "name": "Launch",
      "duration": 0,
      "dependencies": [
        5
      ],
      "isMilestone": true
    }
  ]
}

Essayez maintenant ! Copiez l'exemple ci-dessus et créez votre diagramme de Gantt instantanément.

Ouvrir l'outil d'import →

Référence du schéma

Project Object

FieldTypeRequiredDescription
namestringYesProject name
descriptionstringNoProject description
startDatestring (ISO date)NoProject start date (defaults to today)
tasksTask[]YesArray of task objects

Task Object

FieldTypeRequiredDescription
namestringYesTask name
durationnumberYesDuration in days (use 0 for milestones)
dependenciesnumber[]NoArray of task indices this task depends on
descriptionstringNoTask description or notes
isMilestonebooleanNoMark as milestone (duration should be 0)

Exemples

Simple Project

{
  "name": "Product Launch",
  "tasks": [
    {
      "name": "Planning",
      "duration": 5,
      "dependencies": []
    },
    {
      "name": "Development",
      "duration": 10,
      "dependencies": [
        0
      ]
    },
    {
      "name": "Launch",
      "duration": 0,
      "dependencies": [
        1
      ],
      "isMilestone": true
    }
  ]
}

Project with Parallel Tasks

{
  "name": "Marketing Campaign",
  "tasks": [
    {
      "name": "Strategy",
      "duration": 3,
      "dependencies": []
    },
    {
      "name": "Content Creation",
      "duration": 7,
      "dependencies": [
        0
      ]
    },
    {
      "name": "Design Assets",
      "duration": 5,
      "dependencies": [
        0
      ]
    },
    {
      "name": "Review",
      "duration": 2,
      "dependencies": [
        1,
        2
      ]
    },
    {
      "name": "Go Live",
      "duration": 0,
      "dependencies": [
        3
      ],
      "isMilestone": true
    }
  ]
}

Utilisation avec l'IA

Tip for AI users:You can ask ChatGPT, Claude, or other AI assistants to generate project JSON in LoopGantt format. Simply say: “Create a Gantt chart JSON for [your project] using LoopGantt format” and paste the result at loopgantt.com/import.

Intégration via l'API

You can also create projects programmatically via our import API. Send a POST request to /api/import with your JSON project data:

POST /api/import
Content-Type: application/json

{
  "name": "My Project",
  "tasks": [...]
}

// Response:
{
  "success": true,
  "projectId": "uuid",
  "redirectUrl": "/dashboard/project/uuid"
}

Prêt à créer votre diagramme de Gantt ?

Importer le JSON maintenant →