mardi 5 janvier 2021

How can i reflect this kind of json array by Run Time Type Reflection(RTTR)?

I want to reflect a json string to a singel std::vector, which like

[ { "X": 113.80403039339605, "Y": 22.652868779963439, "Z": 113.80403039339605 }, { "X": 113.80403464036024, "Y": 22.652860696903234, "Z": 113.80403464036024 } ]

Especially the std::vector is not a member of a class. I haven't find this kind of string In the officail examples json_serialization. What should i do?





Aucun commentaire:

Enregistrer un commentaire