lib/restfulie/common/representation/json.rb in restfulie-0.7.2 vs lib/restfulie/common/representation/json.rb in restfulie-0.8.0
- old
+ new
@@ -10,11 +10,10 @@
@@headers = {
:post => { 'Content-Type' => media_type_name }
}
def unmarshal(string)
- base = JSON.parse(string)
- base == {} ? {} : base.values.first
+ JSON.parse(string)
end
def marshal(entity, rel)
return entity if entity.kind_of? String
entity.to_json