Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

ActionResults returned from controller actions rendered as JSON, instead of executed #4960

@nil4

Description

@nil4

Steps to reproduce

git clone https://github.com/nil4/MvcCoreObjectResultRepro.git
cd MvcCoreObjectResultRepro
dotnet restore
dotnet run

Open http://localhost:5000/ in your browser.

Expected results

The page displays {"a":"test"}, i.e. only the ObjectResult value is returned to the client.

Actual results

The page displays {"value":{"a":"test"},"formatters":[],"contentTypes":[],"declaredType":null,"statusCode":null} instead, i.e. all the properties of ObjectResult are returned to the client, not just the value.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions