From 5bfb92cde7308f919cdd374db7987d5cd7b1a09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Thu, 23 May 2024 21:16:20 +0300 Subject: [PATCH] db.json has been fixed --- db.json | 53 ++++++++++++++++++++++------------------------------- 1 file changed, 22 insertions(+), 31 deletions(-) diff --git a/db.json b/db.json index bb838bf..02968d2 100644 --- a/db.json +++ b/db.json @@ -1,33 +1,24 @@ { - "products": [ - { - "id": "1", - "productName": "Laptop", - "categoryId": 1, - "unitPrice": 5000.99 - } - { - "id": "2", - "productName": "Mouse", - "categoryId": 2, - "unitPrice": 50.99 - } - { - "id": "3", - "productName": "Water", - "categoryId": 3, - "unitPrice": 0.99 - } - ], - "categories": [ - { - "id": "1", - "categoryName": "Computers" - }, - { - "id": "2", - "categoryName": "Beverages" - } - ] -} + "products": [ + { "id": 1, + "productName": "Laptop", + "categoryId": 1, + "unitPrice": 5000.99 + }, + { "id": 2, + "productName": "Mouse", + "categoryId": 1, + "unitPrice": 50.99 }, + { "id": 3, + "productName": "Water", + "categoryId": 2, + "unitPrice": 0.99 } + ], + "categories": [ + { "id": 1, + "categoryName": "Computers" }, + { "id": 2, + "categoryName": "Beverages" } + ] + } \ No newline at end of file