search for: jsonifi

Displaying 3 results from an estimated 3 matches for "jsonifi".

Did you mean: json_fn
2008 Jan 30
0
Help with JSONified objects from ActiveRecord
Hello guys, I''m trying to return a custom JSON response to a client frontend. The object I''m trying to return is a User, with some associated Locale data. So basically I need to put the User data and his Locale in a "data" property in the JSON response. If this worked, it would be perfect: json = Hash.new json[:success] = false json[:data] = User.find(params[:id],
2007 Aug 07
2
"badly formed JSON" exception
I tried to implement the "Rendering JSON in actions" example from http://wiki.rubyonrails.com/rails/pages/HowtoGenerateJSON : @headers["Content-Type"] = "text/plain; charset=utf-8" data = { :foo => ''bar'', :etc => ''rez'' } render :text => data.to_json When I try to decode this in javascript with
2008 Jul 12
0
to_json in Rails 2.0.2 not generating proper json?
...ated_at] still gives me "created_at": {}, "update_at": {} 3) problem with escaped char mapping: ''<'' mapped to ''\074'' instead of ''\u003C'' Is there problem with my installation? Is there a module I should turn on? Do I need jsonifier plugin? Help please! victor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsu...