What do you want to save?
Add Code snippet
New code examples
-
C# 2021-10-28 04:35:14
use newtonsoft json to clone object
// using Newtonsoft.Json; // This sample is from the StackOverflow response (source cited) with // a couple of modifications public static T Clone<T>(T source) { var jsonSettings = new Newtonsoft.Json.JsonSerializerSettings() { // Use this ... Add solution -
Javascript 2021-10-23 03:30:12
c# loop through json
// Answer By: Cam3r0n#0481 // Pro Tip : Use this to convert your JSON to C# Classes // https://json2csharp.com/ // The example json // {"chat":[{"author":"Bob","content":"My name is Bob and I approve this mess... Add solution -
VBA 2021-10-22 03:46:11
como usar a função SelectToken em vb net
string json = @"{""key1"":""value1"",""key2"":""value2""}"; var values = JsonConvert.DeserializeObject<Dictionary<string, string>>(json); Add solution -
Other 2021-10-19 09:29:10
the request entity's media type 'text/plain' is not supported for this resource
var json = JsonConvert.SerializeObject(body); var content = new StringContent(json); content.Headers.ContentType= new MediaTypeHeaderValue("application/json"); return _client.PostAsync(requestUri, content); https://bartwullems.blogspot.com/2018... Add solution -
Javascript 2021-10-06 14:14:06
c# newtonsoft serialize dictionary to json
Dictionary<string, int> points = new Dictionary<string, int> { { "James", 9001 }, { "Jo", 3474 }, { "Jess", 11926 } }; string json = JsonConvert.SerializeObject(points, Formatting.Indented); Console.... Add solution -
C# 2021-10-05 12:39:05
JavaScriptSerializer() and convert to base64
class Program { static void Main(string[] args) { var account = new ExternalAccount() { Name = "Someone" }; string json = JsonConvert.SerializeObject(account); string base64EncodedExternalAccount = Convert.ToBase6... Add solution