create messages from json strings