Hi Damon,
it depends, where your data comes from. If you have the json data in a
std::string, you can use std::istringstream to create a std::istream out
of it:
std::string myJsonData = ...;
std::istringstream in(myJsonData);
cxxtools::JsonDeserializer unjson(in);
unjson.deserialize(data);
Tommi
Am 27.03.2014 21:28, schrieb Little, Damon:
Hello all,
To deserialize JSON in a stand-alone program I can say something like:
cxxtools::JsonDeserializer unjson(std::cin);
unjson.deserialize(data);
What do I replace std::cin with to get the same result with a shared tntnet
library (.ecpp file)?
Thanks in advance,
Damon
--------------------------
Damon Little
Assistant Curator of Bioinformatics
Cullman Program for Molecular Systematics
The New York Botanical Garden
Bronx, New York 10458-5126
U.S.A.
Tel: 718.817.8521
------------------------------------------------------------------------------
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general
------------------------------------------------------------------------------
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general