Search Results for

    Show / Hide Table of Contents

    Class JsonNetUtility

    Inheritance
    object
    JsonNetUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.IO.Networking.RESTApi
    Assembly: Glitch9.dll
    Syntax
    public static class JsonNetUtility

    Methods

    | Edit this page View Source

    Has<T>(IAttributeProvider)

    Declaration
    public static bool Has<T>(this IAttributeProvider ap) where T : Attribute
    Parameters
    Type Name Description
    IAttributeProvider ap
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    IsLikelyJson(string)

    문자열이 JSON의 "시작"인지 확인. (첫 유효문자가 '{' 또는 '[')

    Declaration
    public static bool IsLikelyJson(string s)
    Parameters
    Type Name Description
    string s
    Returns
    Type Description
    bool
    | Edit this page View Source

    SafeParseErrorMessage(string)

    Declaration
    public static string SafeParseErrorMessage(string raw)
    Parameters
    Type Name Description
    string raw
    Returns
    Type Description
    string
    | Edit this page View Source

    ToPrettyJson(string, int, int)

    JSON이면 예쁘게(들여쓰기) 변환. 아니면 그대로 반환.

    Declaration
    public static string ToPrettyJson(string input, int indentSize = 4, int maxChars = 2000000)
    Parameters
    Type Name Description
    string input
    int indentSize
    int maxChars
    Returns
    Type Description
    string
    | Edit this page View Source

    TryGetAll<T>(IAttributeProvider, out IEnumerable<T>)

    Declaration
    public static bool TryGetAll<T>(this IAttributeProvider ap, out IEnumerable<T> attrs) where T : Attribute
    Parameters
    Type Name Description
    IAttributeProvider ap
    IEnumerable<T> attrs
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    TryGet<T>(IAttributeProvider, out T)

    Declaration
    public static bool TryGet<T>(this IAttributeProvider ap, out T attr) where T : Attribute
    Parameters
    Type Name Description
    IAttributeProvider ap
    T attr
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation