Class JsonNetUtility
Inheritance
JsonNetUtility
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 Parameters
|
Edit this page
View Source
IsLikelyJson(string)
문자열이 JSON의 "시작"인지 확인. (첫 유효문자가 '{' 또는 '[')
Declaration
public static bool IsLikelyJson(string s)
Parameters
| Type |
Name |
Description |
| string |
s |
|
Returns
|
Edit this page
View Source
SafeParseErrorMessage(string)
Declaration
public static string SafeParseErrorMessage(string raw)
Parameters
| Type |
Name |
Description |
| string |
raw |
|
Returns
|
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
|
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 Parameters
|
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 Parameters