GithubHelp home page GithubHelp logo

kenlefeb / restsharp.serializers.newtonsoft.json Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adamfisher/restsharp.serializers.newtonsoft.json

0.0 3.0 0.0 23 KB

Restores Newtonsoft.JSON as the default serializer for RestSharp.

License: Apache License 2.0

C# 100.00%

restsharp.serializers.newtonsoft.json's Introduction

RestSharp.Serializers.Newtonsoft.Json

This is a glue library that makes Newtonsoft.JSON the default serializer for RestSharp.

RestSharp removed Newtonsoft.JSON as a dependency in version 103.0 which is great if you don't need all the extra capability Newtonsoft.JSON provides.

After working on several projects and getting annoyed with the limited functionality available in the default JsonSerializer include with .NET, I decided to create this project so I wouldn't have to leave a JSON serialization implementation laying around in my projects. Hopefully it helps someone else too.

Getting Started

Installation

This package is available as a nuget package on nuget.org.

Code

This library makes a NewtonsoftJsonSerializer available which you can readily plug into your RestSharp request object like this:

var request = new RestRequest();
request.JsonSerializer = new NewtonsoftJsonSerializer();

If you don't want to keep initializing every RestRequest, you can also use the RestSharp.Serializers.Newtonsoft.Json.RestRequest class instead of the one from RestSharp. They are named the same but this class will default to using the Newtonsoft.JSON serialization engine.

restsharp.serializers.newtonsoft.json's People

Contributors

adamfisher avatar

Watchers

James Cloos avatar Kenneth LeFebvre avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.