implement json format for protobuf (like text format)

implement json format for protobuf (like text format)