summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slicer/json/serializer.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/slicer/json/serializer.cpp b/slicer/json/serializer.cpp
index f6e7415..7476a0d 100644
--- a/slicer/json/serializer.cpp
+++ b/slicer/json/serializer.cpp
@@ -251,11 +251,7 @@ namespace Slicer {
JsonFileDeserializer::Deserialize(ModelPartPtr modelRoot)
{
std::ifstream inFile(path.string());
- std::stringstream buffer;
- buffer << inFile.rdbuf();
- Glib::ustring doc(buffer.str());
- Glib::ustring::const_iterator itr = doc.begin();
- json::Value obj = json::parseValue(itr);
+ json::Value obj = json::parseValue(inFile);
auto mp = modelRoot->GetAnonChild();
boost::apply_visitor(DocumentTreeIterate(mp), obj);
}