alexeyxo / protobuf-swift

Google ProtocolBuffers for Apple Swift
http://protobuf.io/#swift
Apache License 2.0
938 stars 138 forks source link

Can not parser json with include "_" key #197

Closed 13812453806 closed 7 years ago

13812453806 commented 7 years ago

Version of protoc (protoc --version) 3.0

Version of ProtocolBuffers.framework 3.0.0

.proto file to reproduce message ZcyProjectBase {

string id = 1; 
string borrow_name = 2; 

}

Description Can not parser json with include "_" key

for example json string: {"id":"1","borrow_name":"my name"} borrow_name json value can not be parser

please help me fix this issues, thanks!

13812453806 commented 7 years ago

sorry ! I find json name config for json parse, I fixed myself, thanks!