public Json(Object value) : this(value.IsJsonPrimitive() ? null : value, value == null || value.IsJsonPrimitive() ? null : value.GetType()) { if (value.IsJsonPrimitive()) { _my_primitive = value; _my_state = State.Primitive; } }
public JsonPrimitive(Object value) : base(value.IsJsonPrimitive() ? null : value) { if (value.IsJsonPrimitive()) _my_primitive = value; (_state == State.Primitive).AssertTrue(); }