When using this tool, I expect for int64 fields to be represented as numbers in their json form (int64). In the same way that the component casts Double, I would expect that a declared Int64 field is cast as Int64, rather than wrapped in a string.
The produced file has
jsonMap["myInt"] = "\(myInt)"
When i would expect
jsonMap["myInt"] = myInt
I have confirmed that removing the quotes in the generated file does not produce errors for encoding, and creates the expected behavior.
Version of protoc (
protoc --version
)3.1
Version of ProtocolBuffers.framework
3.0.6
.proto
file to reproduceDescription
When using this tool, I expect for int64 fields to be represented as numbers in their json form (int64). In the same way that the component casts Double, I would expect that a declared Int64 field is cast as Int64, rather than wrapped in a string.
The produced file has
When i would expect
I have confirmed that removing the quotes in the generated file does not produce errors for encoding, and creates the expected behavior.