json2protobuf: validate JSON structure while process message