/** * @inheritdoc */ protected function determineContentTypeByRaw($rawContent) { //determine json array's too if (preg_match('/^\\[.*\\]$/is', $rawContent)) { return self::CONTENT_TYPE_JSON; } return parent::determineContentTypeByRaw($rawContent); }