Visibility.GetJson C# (CSharp) Method

GetJson() public method

public GetJson ( ) : string
return string
    public string GetJson()
    {
        var className = GetType ().Name.ToLower ();
        var id = GetInstanceID ();
        var json = "{\"type\": \"" + className + "\", \"id\": " + id + ", \"attributes\": " + JsonUtility.ToJson (this) + "}";
        Debug.Log (json);
        return json;
    }