internalJsonWrite(message, options) {
        return this.refJsonWriter.write(message, options);
    }
This is an internal method. If you just want to write a message
to JSON, use `toJson()` or `toJsonString().

Writes JSON value and returns it.