Make Ruby hashes josn