Decode JSON TRP messages, then send to main thread.