I know the print command outputs a scalar... but why do I need the print command here before bag_unpack, what's it doing?
let JsonDynamic = todynamic('{"hello": 1337, "world": ["wibble","wobble","wubble"]}');
print x = JsonDynamic
| evaluate bag_unpack(x)
| mv-expand world
or, in this stackoverflow answer, why use print with dynamic??? How to transform a JSON array of objects to a Kusto table?
I'm just trying to understand... thank you!!
Sorry this is so vague...I'm trying to understand why I need the print command for this to work?
This doesn't work...
let JsonDynamic = todynamic('{"hello": 1337, "world": ["wibble","wobble","wubble"]}');
| evaluate bag_unpack(JsonDynamic)
| mv-expand world
but JsonDynamic is a dictionary
let JsonDynamic = todynamic('{"hello": 1337, "world": ["wibble","wobble","wubble"]}');
print gettype(JsonDynamic)
This does work but x is still a dictionary?
let JsonDynamic = todynamic('{"hello": 1337, "world": ["wibble","wobble","wubble"]}');
print x = JsonDynamic
| project gettype(x)
They both seem to be dictionaries, but why the does the print command make it work?