Topic: Database -> JavaScript without JSON possible?

Hey,

i am not new to programming but new to rails and webdevelopment.
Is it possible to get a nummber of datasets (up to 200) out of the database into javascript without the user noticing?
I tried JSON already like
@variable = Class.all in the controller and @variable.to_json in the view
Obviously the result was not very pleasing. Is there any other way to acomplish that?

Re: Database -> JavaScript without JSON possible?

I just need a keyword and ill find out how it works by myself. But at the moment i have no clue how to accomplish that.
There must be some way

Re: Database -> JavaScript without JSON possible?

have you tried to use xml data type ?