[JSONSerialization] Add ability to emit 'null' value

This commit is contained in:
Rintaro Ishizaki
2018-01-30 15:12:41 +09:00
parent 993f6239f0
commit 4087cff99d
2 changed files with 57 additions and 0 deletions

View File

@@ -222,6 +222,10 @@ void Output::scalarString(StringRef &S, bool MustQuote) {
Stream << S;
}
void Output::null() {
Stream << "null";
}
void Output::indent() {
Stream.indent(StateStack.size() * 2);
}