Add JSON functionality to Utils
We want to be able to generate JSON files, and such functionality is not available in base or other boot libraries. I have copied the minal implementation from https://hackage.haskell.org/package/ghc-9.4.4/docs/GHC-Utils-Json.html