You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I serialise one of these (instead of an array) I get the expected output:
{"products":{"id":"1","name":"bob"}}
This is running in a Web Api 2 project, with the following setup code in WebApiConfig.cs:
usingJSONAPI.EntityFramework;// For pluralisation service.usingJSONAPI.Json;// ...varformatter=newJsonApiFormatter{PluralizationService=newPluralizationService()};config.Formatters.Add(formatter);
Is there anything I am missing here? I've searched other open issues (and Stackoverflow) but couldn't see this mentioned anywhere.
Thanks.
The text was updated successfully, but these errors were encountered:
Sadly, the version on nuget is way out of date. For the time-being you should use the code that is in master. There is a little bit of documentation in #96 to help get you started.
Version - 0.2.0.0 (nuget)
When serialising an array or enumerable, I get the following formatted output:
The class being serialised is:
If I serialise one of these (instead of an array) I get the expected output:
This is running in a Web Api 2 project, with the following setup code in
WebApiConfig.cs
:Is there anything I am missing here? I've searched other open issues (and Stackoverflow) but couldn't see this mentioned anywhere.
Thanks.
The text was updated successfully, but these errors were encountered: