thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Geyer <>
Subject AW: Generate .thrift file based on example .json file?
Date Fri, 04 Oct 2013 14:37:01 GMT
I understand it differently. Probably existing interfaces should be replaced or an alternative
intf. should be made available. I did sth. similar, we have a web service that offers a dual
interface: Thrift and SOAP. I did that by means of xText and generated nearly the full interface
infrastructure, and a good part of the Test Client application from it.

However, I started at a different point, because none of the services did exist before. Can
I have a look at some example data?
Von: Ben Craig
Gesendet: 04.10.2013 15:41
Betreff: Re: Generate .thrift file based on example .json file?

> From: Andrew Pennebaker <>
> To: Thrift Users <>,
> 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
> 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 <>
> > Is this a real use case? Is it a one time thing or more an
> > 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
> > .thrift file based on an example .json file.
> >
> > For example, a service might want to transition from JSON to Thrift,
> > not have to manually convert each .json field into the corresponding
> > .thrift field.
> >
> > How difficult would it be to automating this?.
> >

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message