{
  "updatedAt": "2025-04-10T05:11:39.000Z",
  "createdAt": "2025-04-10T04:32:33.680Z",
  "id": "QelXKtRhdNvo0Bqt",
  "name": "Json invalid demo and sua loi",
  "description": null,
  "active": false,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "4355b266-1f09-4b74-8cd9-3c898b64829c",
      "name": "When clicking ‘Test workflow’"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "de0c5298-6e9a-40c2-9fa9-de10a814aed5",
              "name": "name",
              "value": "iphone \"12 inch",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        -20
      ],
      "id": "417878af-487f-4e9a-a07d-932772356a3e",
      "name": "product"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "de0c5298-6e9a-40c2-9fa9-de10a814aed5",
              "name": "name",
              "value": "iphone \"12 inch",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        180
      ],
      "id": "560cda35-5a57-4d5c-90cf-09d3d7308283",
      "name": "product1"
    },
    {
      "parameters": {
        "url": "https://mecode.pro/",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n\"product\": \"iphone \" 12inch\",\n\"price\": 90000\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        220,
        -220
      ],
      "id": "05243584-ef7d-4645-bebc-9dd398a46fd3",
      "name": "tinh_huong_loi"
    },
    {
      "parameters": {
        "url": "https://mecode.pro/",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ \n\n{\nproduct: $json.name,\nprice: 80000\n}\n\n}}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        460,
        -20
      ],
      "id": "2bd12fd2-3893-4ffa-b87d-1cb53ee12cb3",
      "name": "khac_phuc_bang_object_json"
    },
    {
      "parameters": {
        "mode": "raw",
        "jsonOutput": "{\n  \"product\" : \"\",\n  \"price\": 555\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        440,
        180
      ],
      "id": "b9723d9d-2407-4661-a37a-5b013771bdf0",
      "name": "json_template_string"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "a2f855c5-1267-4e19-9db6-78fb64520047",
              "name": "product",
              "value": "={{ $('product1').item.json.name }}",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        660,
        180
      ],
      "id": "3c4cc94e-22e9-4511-a9eb-7c9f38e66365",
      "name": "khac_phuc_bang_field_set"
    }
  ],
  "connections": {
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "product",
            "type": "main",
            "index": 0
          },
          {
            "node": "product1",
            "type": "main",
            "index": 0
          },
          {
            "node": "tinh_huong_loi",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "product": {
      "main": [
        [
          {
            "node": "khac_phuc_bang_object_json",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "product1": {
      "main": [
        [
          {
            "node": "json_template_string",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "json_template_string": {
      "main": [
        [
          {
            "node": "khac_phuc_bang_field_set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "meta": null,
  "pinData": {},
  "versionId": "846c639b-1e57-4f8c-8966-3f32a13d304f",
  "activeVersionId": null,
  "versionCounter": 1,
  "triggerCount": 0,
  "shared": [
    {
      "updatedAt": "2025-04-10T04:32:33.692Z",
      "createdAt": "2025-04-10T04:32:33.692Z",
      "role": "workflow:owner",
      "workflowId": "QelXKtRhdNvo0Bqt",
      "projectId": "Nlp7kXCVcAfb0cmG",
      "project": {
        "updatedAt": "2024-07-25T03:06:26.102Z",
        "createdAt": "2024-07-25T03:06:26.102Z",
        "id": "Nlp7kXCVcAfb0cmG",
        "name": "Bình Đặng <dangngocbinh.dnb@gmail.com>",
        "type": "personal",
        "icon": null,
        "description": null,
        "creatorId": "92f1ca82-c19e-4a7d-8458-93b65f67f4c7"
      }
    }
  ],
  "tags": [
    {
      "updatedAt": "2024-10-04T03:03:40.628Z",
      "createdAt": "2024-10-04T03:03:40.628Z",
      "id": "MW10UcI4NI01thiG",
      "name": "share"
    }
  ],
  "activeVersion": null
}