Support building JSON messages in code.