You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i try to map it into a struct I reach allways the following error: terminate called after throwing an instance of 'struct_mapping::StructMappingException'
what(): parser: unexpected character '[' at line 1
The text was updated successfully, but these errors were encountered:
Unfortunately, the object is expected first. Arrays as the first elements are not yet supported (there is not enough time to expand the library). You can wrap your array in a structure, then everything will work.
[
{
"field1": "Donald Duck",
"field2": "sample text",
"field3": 0.5675269775390624,
"h": 490,
"attrfield": [
{
"attr1": "first attribute",
"attr2": "secod attribute"
},
{
"attr1": "first attribute",
"attr2": "secod attribute"
}
]
},
{
"field1": "Mickey Mouse",
"field2": "sample text",
"field3": 0.9995269775390625,
"h": 300,
"attrfield": [
{
"attr1": "first attribute",
"attr2": "secod attribute"
},
{
"attr1": "first attribute",
"attr2": "secod attribute"
}
]
}
]
when i try to map it into a struct I reach allways the following error:
terminate called after throwing an instance of 'struct_mapping::StructMappingException'
what(): parser: unexpected character '[' at line 1
The text was updated successfully, but these errors were encountered: