This website requires JavaScript.
Explore
Help
Sign In
kotovalexarian-likes-github
/
rails--rails
Watch
1
Star
0
Fork
You've already forked rails--rails
0
mirror of
https://github.com/rails/rails.git
synced
2022-11-09 12:12:34 -05:00
Code
Releases
Activity
e89241c92f
rails--rails
/
activesupport
/
lib
/
active_support
/
json
/
encoders
/
string.rb
7 lines
109 B
Ruby
Raw
Normal View
History
Unescape
Escape
Refactor ActiveSupport::JSON to be less obtuse. Add support for JSON decoding by way of Syck with ActiveSupport::JSON.decode(json_string). Prevent hash keys that are JavaScript reserved words from being unquoted during encoding. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6443 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-18 03:05:58 -04:00
class
String
Privatize rails_to_json
2009-04-26 18:54:28 -04:00
private
Now that we have a separate internal rails_to_json, use a separate circular reference stack instead of sticking it in the options hash
2009-04-26 23:04:47 -04:00
def
rails_to_json
(
*
)
Privatize rails_to_json
2009-04-26 18:54:28 -04:00
ActiveSupport
::
JSON
::
Encoding
.
escape
(
self
)
end
Refactor ActiveSupport::JSON to be less obtuse. Add support for JSON decoding by way of Syck with ActiveSupport::JSON.decode(json_string). Prevent hash keys that are JavaScript reserved words from being unquoted during encoding. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6443 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-18 03:05:58 -04:00
end
Copy permalink