Skip to content

String -> Json serialization #2089

Open
@marekvinkler

Description

@marekvinkler

I'm actually continuing discussion on this bug: #1886

I have to send an arbitrary object via RestSharp. Currently the only possibility for me is to add the body via AddParameter(new JsonParameter("", json)) which seems quite ugly to me. It would be nice to add the bool forceSerialize parameter also to the generic AddJsonBody and not only to the string specialization. That way I could make sure that AddJsonBody serializes the object to a valid JSON for every type.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions