@Component
class JsonHelper(val objectMapper: ObjectMapper)

Spring component containing helper function for GitHub sync related json operations

Parameters

objectMapper

Reference for the spring instance of ObjectMapper

Constructors

Link copied to clipboard
constructor(objectMapper: ObjectMapper)

Properties

Link copied to clipboard
val objectMapper: ObjectMapper

Functions

Link copied to clipboard

Parse a json value into a string Converts the value to a boolean

Link copied to clipboard

Parse a json value into a label state map

Link copied to clipboard
fun parseNumber(input: String?): Double?

Parse a json value into a string For example a "text" becomes text, while "text results in null

Link copied to clipboard
fun parseString(input: String?): String?

Parse a json value into a string For example a "text" becomes text, while "text results in null