thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Craig <bencr...@apache.org>
Subject Re: Generate .thrift file based on example .json file?
Date Fri, 04 Oct 2013 13:40:52 GMT
> From: Andrew Pennebaker <apennebaker@42six.com>
> To: Thrift Users <user@thrift.apache.org>, 
> 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 <jensgeyer@hotmail.com> 
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?.
> >


Mime
View raw message