Compiled IDLs that serialize to JSON

I've used Protobuf before and I was looking for Thrift, but I was wondering what options were there for IDL, which compiles (at least) C #, JS, Objective C and Java, but also serializes / deserializes JSON into all of those languages. Thrift mainly does this, but does not support JSON in OC, and I was concerned (perhaps unreasonably) about the maturity of its JSON interfaces. Are there IDLs that use JSON as their primary serialization but also compile for strongly typed bindings in all the languages ​​listed above?

Thank!

+3


source to share


1 answer


As far as Thrift is concerned, if any serialization protocols can be considered "primary", it will certainly be binary. However, we aim to introduce a common minimum set of protocols and transports for each language, one of which is JSON.

Further, please be aware that Thrift JSON format may not be what you expect . The JSON format is specially designed for Thrift, with the main purpose of compact representation of data. The SimpleJSON protocol, also available in some languages, is more verbatim, but originally intended to be written only (although this point of view is now changing slightly).



I was concerned (perhaps unfounded) about the maturity of my JSON interfaces

Don't worry, honestly. There are a few PHP related questions regarding the correct string encoding, but otherwise it works just fine - when available for the selected language . If you don't mind, writing JSON transports is not that difficult and quality contributions are always welcome . If you need help during this process, ask the mailing lists.

0


source







All Articles