本文整理了Java中io.restassured.path.json.JsonPath.prettyPrint()
方法的一些代码示例,展示了JsonPath.prettyPrint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JsonPath.prettyPrint()
方法的具体详情如下:
包路径:io.restassured.path.json.JsonPath
类名称:JsonPath
方法名:prettyPrint
[英]Get and print the JSON as a prettified string.
Note that the content is not guaranteed to be looking exactly like the it does at the source. This is because once you peek the content has been downloaded and transformed into another data structure (used by JsonPath) and the JSON is rendered from this data structure.
[中]获取JSON并将其打印为经过修饰的字符串。
请注意,不能保证内容看起来与源代码完全相同。这是因为,一旦您查看了内容,内容就被下载并转换为另一个数据结构(由JsonPath使用),JSON将从此数据结构呈现。
代码示例来源:origin: rest-assured/rest-assured
/**
* Peeks into the JSON that JsonPath will parse by printing it to the console in a prettified manner. You can
* continue working with JsonPath afterwards. This is mainly for debug purposes. If you want to return a prettified version of the content
* see {@link #prettify()}. If you want to return a prettified version of the content and also print it to the console use {@link #prettyPrint()}.
* <p/>
* <p>
* Note that the content is not guaranteed to be looking exactly like the it does at the source. This is because once you peek
* the content has been downloaded and transformed into another data structure (used by JsonPath) and the JSON is rendered
* from this data structure.
* </p>
*
* @return The same JsonPath instance
*/
public JsonPath prettyPeek() {
prettyPrint();
return this;
}
代码示例来源:origin: rest-assured/rest-assured
/**
* Peeks into the JSON that JsonPath will parse by printing it to the console in a prettified manner. You can
* continue working with JsonPath afterwards. This is mainly for debug purposes. If you want to return a prettified version of the content
* see {@link #prettify()}. If you want to return a prettified version of the content and also print it to the console use {@link #prettyPrint()}.
* <p/>
* <p>
* Note that the content is not guaranteed to be looking exactly like the it does at the source. This is because once you peek
* the content has been downloaded and transformed into another data structure (used by JsonPath) and the JSON is rendered
* from this data structure.
* </p>
*
* @return The same JsonPath instance
*/
public JsonPath prettyPeek() {
prettyPrint();
return this;
}
代码示例来源:origin: io.rest-assured/json-path
/**
* Peeks into the JSON that JsonPath will parse by printing it to the console in a prettified manner. You can
* continue working with JsonPath afterwards. This is mainly for debug purposes. If you want to return a prettified version of the content
* see {@link #prettify()}. If you want to return a prettified version of the content and also print it to the console use {@link #prettyPrint()}.
* <p/>
* <p>
* Note that the content is not guaranteed to be looking exactly like the it does at the source. This is because once you peek
* the content has been downloaded and transformed into another data structure (used by JsonPath) and the JSON is rendered
* from this data structure.
* </p>
*
* @return The same JsonPath instance
*/
public JsonPath prettyPeek() {
prettyPrint();
return this;
}
内容来源于网络,如有侵权,请联系作者删除!