將 HSON 替換為 Hash
require 'json'
data = JSON '{"test":23}' # => {"test"=>23}
要麼
require 'json'
data = JSON['{"test":23}'] # => {"test"=>23}
require 'json'
data = JSON '{"test":23}' # => {"test"=>23}
要麼
require 'json'
data = JSON['{"test":23}'] # => {"test"=>23}