From 325727953cc316a8cad1340380fc36c8e25dac94 Mon Sep 17 00:00:00 2001 From: Sergey Linev Date: Mon, 31 Oct 2016 09:15:52 +0100 Subject: [PATCH] json: store empty const char* as "", not as null this is how binary I/O works. Empty string or null will be always restored as empty string Signed-off-by: Sergey Linev --- io/io/src/TBufferJSON.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/io/src/TBufferJSON.cxx b/io/io/src/TBufferJSON.cxx index c99e9a9144376..2632659205ad0 100644 --- a/io/io/src/TBufferJSON.cxx +++ b/io/io/src/TBufferJSON.cxx @@ -1398,7 +1398,7 @@ void TBufferJSON::PerformPostProcessing(TJSONStackObj *stack, if (isCharStar) { stack->fValues.Delete(); - if (fValue == "0") fValue = "null"; + if (fValue == "0") fValue = "\"\""; } else if (isTString || isSTLstring) { // just remove all kind of string length information