[#41157005] Add labels attr. to process labels from JSON

This changes is needed for the following PT story:
ID: 42227623
Title: add create labels spec in API