Update yaml2json.hs

removed the unnecessary flag {-# LANGUAGE ScopedTypeVariables #-}
simplified the args processing
added type signature for showJSON