JsonBinder Class

Summary

IJsonBinder is a way to bind complex objects, with nested keys.
Assembly
Rocket.Surgery.Extensions.Binding.dll
Namespace
Rocket.Surgery.Binding
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IJsonBinder"] click Interface0 "/api/Rocket.Surgery.Binding/IJsonBinder" Type["JsonBinder"] class Type type-node

Syntax

public class JsonBinder : IJsonBinder

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Methods

Name Value Summary
Bind(Type, IEnumerable<KeyValuePair<string, string>>, JsonSerializer) object
Bind the values to the source type
Bind(Type, IEnumerable<KeyValuePair<string, string>>) object
Bind the values to the source type
Bind<T>(IEnumerable<KeyValuePair<string, string>>, JsonSerializer) T
Bind the values to the source type
Bind<T>(IEnumerable<KeyValuePair<string, string>>) T
Bind the values to the source type
From<T>(T, JsonSerializer) IEnumerable<KeyValuePair<string, string>>
Get a list of key value pairs for the given source object
From<T>(T) IEnumerable<KeyValuePair<string, string>>
Get a list of key value pairs for the given source object
GetValues<T>(T, JsonSerializer) IEnumerable<KeyValuePair<string, JValue>>
Get a list of Newtonsoft.Json.Linq.JValue's for a given object
GetValues<T>(T) IEnumerable<KeyValuePair<string, JValue>>
Get a list of Newtonsoft.Json.Linq.JValue's for a given object
Parse(IEnumerable<KeyValuePair<string, string>>) JObject
Parses the given key value pairs into a Newtonsoft.Json.Linq.JObject.
Populate<T>(T, IEnumerable<KeyValuePair<string, string>>, JsonSerializer) T
Populate the values to the source type
Populate<T>(T, IEnumerable<KeyValuePair<string, string>>) T
Populate the values to the source type

Extension Methods