> From: Andrew Pennebaker <[email protected]> > To: Thrift Users <[email protected]>, > Date: 10/04/2013 08:33 AM > Subject: Re: Generate .thrift file based on example .json file? > > Repeated. A lot of XML-based projects could benefit from this, as well as > Thrift-based projects, as interoperability would increase.
There isn't a mapping from an arbitrary json schema to a given .thrift file. Thrift has a specific json schema that is unlikely to match existing json byte-streams. > On Wed, Oct 2, 2013 at 10:52 AM, Jens Geyer <[email protected]> wrote: > > > Is this a real use case? Is it a one time thing or more an hypothetical, > > repeated thing? > > ________________________________ > > Von: Andrew Pennebaker > > Gesendet: 02.10.2013 16:08 > > An: Thrift Users > > Betreff: Generate .thrift file based on example .json file? > > > > TJSONProtocol is cool, but I'm wondering if there's a way to generate a > > .thrift file based on an example .json file. > > > > For example, a service might want to transition from JSON to Thrift, and > > not have to manually convert each .json field into the corresponding > > .thrift field. > > > > How difficult would it be to automating this?. > >
