The Json configuration format for Earthworm

By the current methodlogy, we have to agree upon all parameters for a measurement and hardcode all the values into the Earthowm and individual downstream analysing packages.
I proposed to do the configuration in a more flexible way, at run-time. For instant, whoever has the right can send a Json formatted instruction to the network storage at a fixed path. Then Earthowm fetches it and performs run-time configuration.

The following Json data can be saved in a local ascii file, or generated by python at run-time and sent to Redis at the configuration stage.

{
  "instrument": "MR",
  "runID": 12343,
  "task": {
    "dimSevName": "dimserver/TEST_SWAP_1"
    "He3_det": {
      "type": "TOF1D"
      "detectorID": [4, 7, 8, 10],
      "chargeThreshold": 0.0,
      "detectorHalfLength_mm": 150
      "hist_xbins": 5000,
      "hist_xmim_mm": 0.0,
      "hist_xmax_mm": 400000.0,
      "redisPath": ["path1","path2","path3","path4"],
      "updateRate_s": 1.0
    },
    "He3_det": {
      "type": "TOF_POS_2D"
      "detectorID": [4, 7, 8, 10],
      "chargeThreshold": 0.0,
      "detectorHalfLength_mm": 150
      "hist_xbins": 5000,
      "hist_xmim_mm": 0.0,
      "hist_xmam_mm": 400000.0,
      "hist_ybins": 1500,
      "hist_ymim_mm": 0.0,
      "hist_ymax_mm": 150.0,
      "redisPath": ["path1","path2","path3","path4"],
      "updateRate_s": 1.0
    }
  }
}
