mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-04-21 12:17:08 +02:00
* adding step for writing metrics to InfluxDB including dependencies * added documentation * incorporated PR feedback
31 lines
489 B
Markdown
31 lines
489 B
Markdown
# JsonUtils
|
|
|
|
## Description
|
|
Provides json related utility functions.
|
|
|
|
## Constructors
|
|
|
|
### JsonUtils()
|
|
Default no-argument constructor. Instances of the Utils class does not hold any instance specific state.
|
|
|
|
#### Example
|
|
```groovy
|
|
new JsonUtils()
|
|
```
|
|
|
|
## Method Details
|
|
|
|
### getPrettyJsonString(object)
|
|
|
|
#### Description
|
|
Creates a pretty-printed json string.
|
|
|
|
#### Parameters
|
|
* `object` - A object (e.g. Map or List).
|
|
|
|
#### Return value
|
|
A pretty printed `String`.
|
|
|
|
#### Side effects
|
|
none
|