Instance Propertyswift-protobuf 1.28.1SwiftProtobuf
preserveProtoFieldNames
Whether to preserve proto field names. By default they are converted to JSON(lowerCamelCase) names.
JSONEncodingOptions.swift:28var preserveProtoFieldNames: Bool
Other members in extension
Type members
Instance members
var alwaysPrintEnumsAsInts: Bool
Always print enums as ints. By default they are printed as strings.
var alwaysPrintInt64sAsNumbers: Bool
Always prints int64s values as numbers. By default, they are printed as strings as per proto3 JSON mapping rules. NB: When used as Map keys, int64s will be printed as strings as expected.
var useDeterministicOrdering: Bool
Whether to use deterministic ordering when serializing.