Terradue.ElasticCas.Types.GenericJsonCollection.ToJson C# (CSharp) Method

ToJson() public static method

public static ToJson ( GenericJsonCollection gjc ) : string
gjc GenericJsonCollection
return string
        public static string ToJson(GenericJsonCollection gjc)
        {
            Dictionary<string, object> json = new Dictionary<string, object>();
            json.Add("items", gjc.items);

            return json.ToJson();
        }