Rewrite alias to take the whole hash, and first attempt at building the JSON
structure needed.