Package org.apache.jmeter.report.core
Class JsonUtil
java.lang.Object
org.apache.jmeter.report.core.JsonUtil
The class JsonUtil provides helper functions to generate Json.
- Since:
- 3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
toJsonArray
(String... array) Converts the specified array to a json-like array string.static String
toJsonObject
(Map<String, String> map) Converts the specified map to a json-like object string.
-
Constructor Details
-
JsonUtil
public JsonUtil()
-
-
Method Details
-
toJsonArray
Converts the specified array to a json-like array string.- Parameters:
array
- the array- Returns:
- the json string
-
toJsonObject
Converts the specified map to a json-like object string.- Parameters:
map
- the map- Returns:
- the string
-