Might as well move jelement's declaration to where it's actually set, in the nested condition, initializing it from JsonAt().
Not important, though.