[Haskell-beginners] converting a json encoded radix tree to a haskell data type