mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[JSONSerialization] Add ability to emit 'null' value
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user