类的使用
cn.taketoday.framework.test.json.JsonContent
使用JsonContent的程序包
-
cn.taketoday.framework.test.json中JsonContent的使用
修饰符和类型方法说明BasicJsonTester.from(byte[] source) Create JSON content from the specified JSON bytes.BasicJsonTester.from(cn.taketoday.core.io.Resource source) Create JSON content from the specified JSON resource.Create JSON content from the specified JSON file.BasicJsonTester.from(InputStream source) Create JSON content from the specified JSON input stream.BasicJsonTester.from(CharSequence source) Create JSON content from the specified String source.Create JSON content from the specified resource path.protected JsonContent<T>AbstractJsonMarshalTester.getJsonContent(String json) Factory method used to get aJsonContentinstance from a source JSON string.private JsonContent<Object>BasicJsonTester.getJsonContent(String json) protected JsonContent<T>JacksonTester.getJsonContent(String json) ReturnJsonContentfrom writing the specific value.