The problem here is that :()
doesn’t quite work that way and :($(keys(nt)[1]))
is equivalent to keys(nt)[1]
after parsing. For more discussion on this behavior see also this thread:
https://discourse.julialang.org/t/any-rational-behind-symbol-true-true/27597
The solution here would be to just call getproperty
directly.