Ahmed Abdelsalam wrote:> Hi,
>
> I have some data stored in file in JSON format. I''d like to read
these
> data and store them into database in rail application. Is there any
> plugin to perform this? or direct code?
>
ActiveSupport has some JSON stuff built in. Check the docs for
ActiveSupport::JSON.
> Should I convert this data to csv or other format?
Either leave it in JSON or use YAML (which is *almost* a superset of
JSON).
>
> Thanks,
>
> Ahmed
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org
--
Posted via http://www.ruby-forum.com/.
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.