Skip to content

How to handle a kind of json like this? #8

@rgambardella66

Description

@rgambardella66

[
{
"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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions