Follow-up D347:
Phabricator uses a JSON serialization of the array, so a string as rawContent property:
$this->rawContent = json_encode($story);
Other uses directly an object:
$this->rawContent = $payload;
That's not really coherent.
Furthermore, to transform an HTTP query to JSON (Phabricator) is probably okay, but we aren't transforming XML in JSON.