Config JSON conversion in global and sensor config