private/runtime/Conversions/Instances/BooleanConverter.cs

namespace Carbon.Json.Converters
{
    internal sealed class BooleanConverter : JsonConverter<bool>
    {
        public override JsonNode ToJson(bool value) => new JsonBoolean(value);

        public override bool FromJson(JsonNode node) => (bool)node;
    }
}