Fix in JsonMessage constructor for #1384