Re: I think your original coding is kinda broken anyway; there's no
hard guarantee
that those two array sub-selects will give results in the same order.
----------------------------------
Order of the keys is, of course, of no point here (and is not relevant for
normal JSON). Conversion to string is just for 'representational/debugging'
purposes.