That's not about being smart or not.. But about brevity and a bit of experience.
I'd certainly recommend the first one, there's simply less stuff to parse, it's easier and quicker to read.
x is a pair with key of type string and value of pair with key of type string and value of type string.
The other one is overly verbose to read, it takes more effort to read and understand.. But it could have merit, for instance if you need to extract status into a variable of declared type later..
I'd certainly recommend the first one, there's simply less stuff to parse, it's easier and quicker to read.
x is a pair with key of type string and value of pair with key of type string and value of type string.
The other one is overly verbose to read, it takes more effort to read and understand.. But it could have merit, for instance if you need to extract status into a variable of declared type later..