1

Imagine I have the following JSON Object,

const json = {
    code: 3,
    message: 'Test error message',
    details: [
        {
            '@type': 'google.rpc.BadRequest',
            fieldViolations: [
                {
                    field: 'field',
                    description: 'must not be null',
                },
            ],
        },
    ],
};

How can it be converted to a Proto Message using protobufjs?

ololo
  • 1,326
  • 2
  • 14
  • 47

0 Answers0