RubyGems.org

protojson

0.2.0

A Ruby gem for Google's Protocol Buffers messages using three different encodings JSON based syntax instead of the original binary protocol. Supported formats - Hashmap: A tipical JSON message, with key:value pairs where the key is a string representing the field name. - Tagmap: Very similar to Hashmap, but instead of having the field name as key it has the field tag number as defined in the proto definition. - Indexed: Takes the Tagmap format a further step and optimizes the size needed for tag numbers by packing all of them as a string, where each character represents a tag, and placing it as the first element of an array.

installgem install protojson
Authors

Juan de Bravo, Ivan -DrSlump- Montes

2,440 total downloads 1,456 for this version
Owners

530dcfd1de2a02db60065db74a76cf54

Gemfile
gem 'protojson', '~> 0.2.0'
Versions
  1. 0.2.0 August 19, 2011 (15 KB)
  2. 0.1.0 March 27, 2011 (8.5 KB)
Development Dependencies
  1. rspec >= 0