SenseNet / sn-client-dotnet

A .Net client for sensenet that makes it easy to use the REST API of the Content Repository.
https://www.sensenet.com/
GNU General Public License v2.0
7 stars 16 forks source link

Need to POST simple string data #147

Open kavics opened 1 month ago

kavics commented 1 month ago

The ODataRequest's PostData accepts any object that will be JSON-serialized to a string. For example: { "Name": "value" }. In some cases, it needs to post a simple string but the post-data will also be JSON-serialized: Initial data: models=[{"a"=1,"b"=2}] but it sent as "models=[{\"a\"=1,\"b\"=2}]" Expectation: Do not serialize the OdataRequest.PostData if its value is a string.