Cant Edit sale_data.json Overwrite each time

Hi i tried to configure some items like this:

{
  "items": {
    "hat.wolf": {
      "0": {
        "price": 1.0,
        "displayName": "Wolf Headdress",
        "enabled": true
      }
    },
    "fogmachine": {
      "0": {
        "price": 1.0,
        "displayName": "Fogger-3000",
        "enabled": true
      }
    },
    "strobelight": {
      "0": {
        "price": 0.0,
        "displayName": "Strobe Light",
        "enabled": false
      }
    },
    "kayak": {
      "0": {
        "price": 1.0,
        "displayName": "Kayak",
        "enabled": true
      }
    },
    "minihelicopter.repair": {
      "0": {
        "price": 1.0,
        "displayName": "MC repair",
        "enabled": true
      }
    },​

 

if i save the config file reload the plugin i see another entry @the file like this:

{
  "items": {
    "hat.wolf": {
      "0": {
        "price": 0.0,
        "displayName": "Wolf Headdress",
        "enabled": false
      }
    },
    "fogmachine": {
      "0": {
        "price": 0.0,
        "displayName": "Fogger-3000",
        "enabled": false
      }
    },
    "strobelight": {
      "0": {
        "price": 0.0,
        "displayName": "Strobe Light",
        "enabled": false
      }
    },
    "kayak": {
      "0": {
        "price": 0.0,
        "displayName": "Kayak",
        "enabled": false
      }
    },
    "minihelicopter.repair": {
      "0": {
        "price": 0.0,
        "displayName": "MC repair",
        "enabled": false
      }
    },
    "scraptransportheli.repair": {
      "0": {
        "price": 0.0,
        "displayName": "ScrapTransportHeliRepair",
        "enabled": false
      }
    },
    "workcart": {
      "0": {
        "price": 0.0,
        "displayName": "Work Cart",
        "enabled": false
      }
    },​

 

each time the config file will be overwrite so each think which i change is lost :/

so where is my misstake?

Hi! 2 years later, I think your mistake is to not o.unload the plugin before editing it!