lib/gnip_api/gnip/message.rb in gnip_api-0.0.7 vs lib/gnip_api/gnip/message.rb in gnip_api-0.0.8
- old
+ new
@@ -27,10 +27,10 @@
def activity?
@object_type == 'activity'
end
def generate_json data
- JSON.generate(data)
+ GnipApi::JsonParser.encode(data)
end
private
def self.build_system_message params
Gnip::SystemMessage.new params