hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Roughley <rough...@gmail.com>
Subject JSON REST API
Date Mon, 09 Mar 2009 14:32:48 GMT
Hi -

I'm trying to code against the JSON REST API, but having some difficultly.  It seems like
the base64
encoded string values are causing problems, because they are not contained within quotes.
 Here is
the Ruby trace:
>
> JSON::ParserError: 574: unexpected token at '"name":InRocmVlOiI='
>     from /var/lib/gems/1.8/gems/json-1.1.3/lib/json/common.rb:122:in `parse'
>     from /var/lib/gems/1.8/gems/json-1.1.3/lib/json/common.rb:122:in `parse'
>     from (irb):20
>     from /var/lib/gems/1.8/specifications/activerecord-2.1.0.gemspec:5

I looked at the spec, and the value can be an object, but it wasn't clear to me weather base64
was
considered an object (on other mailing lists the answer was no), or whether the encoding should
be
placed within quotes as a string value.

Has anyone else consumed the API and had problems?

/Ian

Mime
View raw message