[protobuf] Is it possible to map an existing db table to an existing protobuf class in sqlalchemy?

2016-04-12 Thread GoldenBull Chen
I have an existing table in Oracle: CREATE TABLE test_tbl ( id NUMBER, name VARCHAR2 (100), valNUMBER, CONSTRAINT test_tbl_pk PRIMARY KEY (id) ); - In python, I

[protobuf] Re: BinaryToJsonString mishandling strings containing UTF8 multibyte characters

2016-04-12 Thread Zachary Deretsky
Thanks Ron, now I can generate json, but is is invalid for maps. I just posted an example with my code. Regards, Zach. On Tuesday, November 24, 2015 at 11:42:22 AM UTC-8, Ron Ben-Yosef wrote: > > Hi, > > When using *BinaryToJsonString *or *BinaryToJsonStream*, I seem to > encounter a problem

[protobuf] BinaryToJsonString generates invalid json for map

2016-04-12 Thread Zachary Deretsky
{"intMap":["4":500,"0":100,"1":200,"2":300,"3":400]} The above json is declared invalid by several json validators. ZZ It is generated by the jtest.proto: syntax = "proto3"; package jtest; message Jmap { map int_map = 2; } ZZZ