Description
If the object or array is empty MarshalIndent doesn't add the new line. WriteJson should do same.
The right output is
insert into default values("k01",{"name":{},"arr":[]});
|
insert into default values("k02",{"name":{"fname":"xyz"},"arr":[5]});
|
select * from default;
|
{
|
"requestID": "73177554-f71c-47fa-9e4d-cd60573d3834",
|
"signature": {
|
"*": "*"
|
},
|
"results": [
|
{
|
"default": {
|
"arr": [],
|
"name": {}
|
}
|
},
|
{
|
"default": {
|
"arr": [
|
5
|
],
|
"name": {
|
"fname": "xyz"
|
}
|
}
|
}
|
],
|
"status": "success",
|
"metrics": {
|
"elapsedTime": "41.800759ms",
|
"executionTime": "41.699968ms",
|
"resultCount": 2,
|
"resultSize": 299
|
}
|
}
|
Attachments
Issue Links
- blocks
-
MB-19612 4.5.1 Minor Release
- Closed