Mercurial > hg > orthanc
comparison OrthancFramework/Sources/RestApi/RestApiOutput.cpp @ 4394:f7104e9d044c
functions to read/write JSON in OrthancPluginCppWrapper.h
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Dec 2020 08:11:37 +0100 |
parents | 3af1d763763a |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4393:e8e95b80194f | 4394:f7104e9d044c |
---|---|
94 #endif | 94 #endif |
95 } | 95 } |
96 else | 96 else |
97 { | 97 { |
98 std::string s; | 98 std::string s; |
99 Toolbox::WriteJson(s, value, false /* styled, not fast */); | 99 Toolbox::WriteStyledJson(s, value); |
100 output_.SetContentType(MIME_JSON_UTF8); | 100 output_.SetContentType(MIME_JSON_UTF8); |
101 output_.Answer(s); | 101 output_.Answer(s); |
102 } | 102 } |
103 | 103 |
104 alreadySent_ = true; | 104 alreadySent_ = true; |