Fixing an naming typo of JSON key

parent f51cbf02
......@@ -443,7 +443,7 @@ std::stringstream ITAGeo::CMirrorImage::ToJSON( std::shared_ptr< const ITAGeo::C
//Set mirror normal array
JSONNode jnNormalArray(JSON_ARRAY);
jnNormalArray.set_name("mirror-normal");
jnNormalArray.set_name("mirror_normal");
//Set the mirror normal nodes
double dX, dY, dZ, dW;
......@@ -926,10 +926,10 @@ void ITAGeo::CPropagationPath::LoadFromJSONString(const std::string& sContent, s
sIdentifier = jnRoot.at("identifier").as_string();
//Get the propagation anchors of the path
JSONNode jnPropagationAnchors = jnRoot.at("propagation anchors").as_array();
JSONNode jnPropagationAnchors = jnRoot.at("propagation_anchors").as_array();
for each (JSONNode jnAnchor in jnPropagationAnchors)
{
CPropagationAnchor::EAnchorType eAnchorType = CPropagationAnchor::ParseAnchorType(jnAnchor.at("anchor type").as_string());
CPropagationAnchor::EAnchorType eAnchorType = CPropagationAnchor::ParseAnchorType(jnAnchor.at("anchor_type").as_string());
switch (eAnchorType)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment