I'm re-writing a project and decided to use .NetCore with AspNetCore.OData (V: 7.4.1). the default Odata serializer makes it hard to both define function and actions on an object (which requires it to be registered as entitySet) and serialize it as a part of a larger-scoped object (which requires it to be registered as complexType). is there a way to override odata's default serilizer with newtonsoft's and that way avoid having to register unnecessary ComplexTypes? I found this question from 4 years ago and figured thing have changed.
Replace OData default Json serializer with newtonSoft's Json Serializer
418 Views Asked by Itay Perri At
0
There are 0 best solutions below
Related Questions in JSON
- Handling both JSON and form values in POST request body with unknown values in Golang
- JSON Body is Not Passing Certain Strings
- Custom rewriter for json
- TypeScript: Type checking while parsing an arbitrary JSON that is typed/
- I dont understand what to do with: System.Text.Json.JsonException: 'The JSON value could not be converted to System.Collections.Generic.IEnumerable`1
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Dynamic Nested Multi-Dimensional Arrays in Rust
- Creating bar chart in FastAPI
- How to encode ttsJson data?
- Trying to get the id of the last element in my json file through an api
- How to give index id to my uploaded json file in FastAPI?
- JQ JSON - Values to Array
- Spring boot JSON parse error: Unexpected character error
- convert csv file with json data inside to a column, rows table in 2nd csv file
- Sigma.JS custom rendering
Related Questions in JSON.NET
- Ignore NULL values in JsonConvert.Deserialize or JToken.Parse
- JsonConvert replace serialized non-object values with type names
- Adding a new JSON property to a class from a Nuget
- How to serialize object to JSON format which inherits IList and has other properties
- JsonConvert.DeserializeObject with different property types needs to continue even after failing but collect the list of errors
- How to get parent node id from child node id in JSON
- Empty Object don't override in Merge using JSON.net
- Get ASP.NET Core 8 MVC controller to return JSON properties unchanged without lowercasing property names
- Serializing generic class with Newtonsoft without encapsulating inner type
- Generate Custom JSON Schema using Newtonsoft.Json.Schema.Generation
- .NET JSON Property custom required logic
- .NET Framework Newtsonsoft json customize required exception message
- After upgrading from .NET 5 to .NET 7 and removing Newtonsoft.Json, DateTime values in API responses are different
- Map JSON string array of headers and nested array of results to C# Generic
- How to deserialize json to C# class with arbitrary number of values and attributes
Related Questions in ODATA
- How to serialize the entire Microsoft.AspNetCore.OData.Results.PageResult<T> object with Newtonsoft.Json in .NET 6?
- possible to index singleValueExtendedProperties in MsGraph?
- D365 F&O - Cannot post addresses with OData
- How to get access token correctly from SAP Successfactors api?
- Odata filter DateTime casting string to DateTime and Filtering
- Response payload is not odata payload
- how to remove namespace from query string to filter an enum field with OData V4 in .NET
- Odata Put endpoint doesn't work as expected on ASP.NET Core MVC web service
- Odata filter query Unrecognized 'Edm.String' literal 'datetime'
- OData unit testing in .NET Core 6.0
- OData rest API with MS Project Online (SharePoint) "User not found in active directory or Project db
- How to upload data in power apps table using python
- ASP.NET Core OData creating generic pass through controller for underlying APIs
- MS Graph /drives/{drive-id}/items/{item-id}/children filter not folders
- Connecting to URL with Token within SSIS
Related Questions in JSONSERIALIZER
- .NET 8 : deserializing of HttpContent Int payload returns null
- C# how to serialize JSON array of objects and convert object name to property value
- FLURL 4.0 use Newtonsoft JSON Serializer on a single request
- C# Map JSON Serialization and Deserialization to Reference Object Using Object Property
- Memory leaking in .NET HttpClient, JsonSerializer or misused Stream?
- How to ignore empty strings in API JSON response?
- Change property names conditionally during serialization
- Unable to Sync Android Studio Gradle files in order to work JSON Serialization
- JsonSerializer deserialize custom JSON
- C# JsonDocument.Parse() Auto casting
- How to generate a JsonSerializable with extended class
- Javascript global functions and variable reseting
- How can I solve the error _Map<String, dynamic>' is not a subtype of type 'List<dynamic>?' in type cast
- I want to use get set method in field of data class kotlin
- How can I use generic structure with JsonSerializable
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?