CompactData is a compact data serialisation format
JSON
{"data":{"is":["v","e","r","b","o","s","e"]}}
CompactData
data(is[c;o;m;p;a;c;t])

CompactData Example in Ruby

A very basic Ruby example importing the RubyGem and using puts to output to console, using the two methods parse and generate. Source code for compactdata-ruby available on GitHub

require "compactdata"

puts CompactData.parse("foo=bar")
# -> {"foo"=>"bar"}

test_obj = Hash.new
test_obj["foo"] = "bar"

puts CompactData.generate(test_obj)
# -> foo=bar