drslump / Protobuf-PHP

PHP implementation of Google's Protocol Buffers with a protoc plugin compiler
http://drslump.github.com/Protobuf-PHP/
MIT License
461 stars 163 forks source link

Json codec and enum fields #64

Open fr05t1k opened 8 years ago

fr05t1k commented 8 years ago

I found an specification for json mapping. Enums are represented as a string, but codec tries to decode/encode enum from an integer. Is it correct or we need to fix it???

Spec: https://developers.google.com/protocol-buffers/docs/proto3#json