start JSON conversion Haskell code