LPS-48619 Use API to add key/value pair to the JSONObject
LPS-48619 Source formatting