method

to_json

rails latest stable - Class: Array

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

to_json(options = nil)
public

Returns a JSON string representing the Array. options are passed to each element.