encode(value, options = nil)
Class Public methods
Dumps objects in JSON (JavaScript Object Notation). See www.json.org for more info.
1 2 | ActiveSupport:: JSON .encode({ team: 'rails' , players: '36' }) # => "{\"team\":\"rails\",\"players\":\"36\"}" |
Please login to continue.