Should Flight::json() handle the Flight::request()->data object as input? At the moment the output is empty. I know it isn't sanitized by default, but that could be done by a hook and so it would be nice to just send it to Flight::json() to return valid json?
Should
Flight::json()
handle theFlight::request()->data
object as input? At the moment the output is empty. I know it isn't sanitized by default, but that could be done by a hook and so it would be nice to just send it toFlight::json()
to return valid json?Or what is the Flight way to do it?