BART now supports JSON on its own API, but it is pretty ugly. Update to use it as the input though because it's cleaner and removes a dependency.