I am writing an API in Symfony 3, I would like to use the Symfony VarDumper dump() function. However dump() is outputting HTML which is rather annoying in my situation. (My client for calling the API does not render HTML)
I would rather the output be plain text, JSON, Yaml, or at least the output that would be used by dump() when it is in CLI mode.
What would be a good way to do this?