While values in a JSON object can be integers, the keys/properties have to be strings - this is supported both by http://www.json.org/ and running 'ruby -rjson -e "puts({ 1 => 1 }.to_json)"' under jRuby and MRI.