parsing json out of the message in case of signatures