C# 클래스 JsonLD.Util.JSONUtils

A bunch of functions to make loading JSON easy
파일 보기 프로젝트 열기: NuGet/json-ld.net

공개 메소드들

메소드 설명
FromInputStream ( Stream content ) : JToken
FromInputStream ( Stream content, string enc ) : JToken
FromReader ( TextReader r ) : JToken
FromString ( string jsonString ) : JToken
FromURL ( Uri url ) : JToken

Returns a Map, List, or String containing the contents of the JSON resource resolved from the URL.

Returns a Map, List, or String containing the contents of the JSON resource resolved from the URL.

ToPrettyString ( JToken obj ) : string
ToString ( JToken obj ) : string
Write ( TextWriter w, JToken jsonObject ) : void
WritePrettyPrint ( TextWriter w, JToken jsonObject ) : void

비공개 메소드들

메소드 설명
JSONUtils ( ) : System

메소드 상세

FromInputStream() 공개 정적인 메소드

public static FromInputStream ( Stream content ) : JToken
content Stream
리턴 JToken

FromInputStream() 공개 정적인 메소드

public static FromInputStream ( Stream content, string enc ) : JToken
content Stream
enc string
리턴 JToken

FromReader() 공개 정적인 메소드

public static FromReader ( TextReader r ) : JToken
r System.IO.TextReader
리턴 JToken

FromString() 공개 정적인 메소드

public static FromString ( string jsonString ) : JToken
jsonString string
리턴 JToken

FromURL() 공개 정적인 메소드

Returns a Map, List, or String containing the contents of the JSON resource resolved from the URL.
Returns a Map, List, or String containing the contents of the JSON resource resolved from the URL.
If the JSON was not valid. /// If there was an error resolving the resource. ///
public static FromURL ( Uri url ) : JToken
url System.Uri The URL to resolve
리턴 JToken

ToPrettyString() 공개 정적인 메소드

public static ToPrettyString ( JToken obj ) : string
obj JToken
리턴 string

ToString() 공개 정적인 메소드

public static ToString ( JToken obj ) : string
obj JToken
리턴 string

Write() 공개 정적인 메소드

public static Write ( TextWriter w, JToken jsonObject ) : void
w System.IO.TextWriter
jsonObject JToken
리턴 void

WritePrettyPrint() 공개 정적인 메소드

public static WritePrettyPrint ( TextWriter w, JToken jsonObject ) : void
w System.IO.TextWriter
jsonObject JToken
리턴 void