Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
464 views
in Technique[技术] by (71.8m points)

c++ - How can I reflect this kind of JSON array by Run Time Type Reflection (RTTR)?

I want to reflect a JSON string like the following to a single std::vector<Point>:

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

The std::vector is not a member of a class.

I haven't found this kind of string in the official examples of json_serialization. What should I do?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...