pub fn get_version(config_json: &str) -> Result<String>Expand description
Get the configuration version
§Arguments
config_json- Configuration JSON string
§Returns
Returns the VERSION string on success
§Example
use sz_configtool_lib::versioning;
let config = r#"{"G2_CONFIG": {"CONFIG_BASE_VERSION": {"VERSION": "4.0.0"}}}"#;
let version = versioning::get_version(config).unwrap();
assert_eq!(version, "4.0.0");