using System.Collections.Generic;
using System.Security.Claims;
public string name {get;set;}
[Newtonsoft.Json.JsonProperty("a.abool")]
public bool abool{get;set;}
[Newtonsoft.Json.JsonProperty("b.abool")]
public bool bbool{get;set;}
public bool ShouldSerializeabool() {
public bool ShouldSerializebbool() {
public static void Main()
var a = new CC {name = "a", abool = true, bbool = false};
var b = new CC {name = "b", abool = true, bbool = false};
var s1 = Newtonsoft.Json.JsonConvert.SerializeObject(a);
var s2 = Newtonsoft.Json.JsonConvert.SerializeObject(b);