Exemplo n.º 1
0
        public string ToPrettyJson(string left = "", bool childrenOnly = false)
        {
            if (_type == Type.Map)
            {
                return(AsMap.ToPrettyJson(left, childrenOnly));
            }
            if (TypesUtil.IsAVector(_type))
            {
                return(AsVector.ToPrettyJson(left, childrenOnly));
            }

            if (childrenOnly)
            {
                return(ToJson);
            }

            return($"{left}{ToJson}");
        }