fixed generation of json object for SETTING Endpoint