You can use a JSON string to marshal data between javascript and ruby:
require 'johnson'
require 'open-uri'
require 'yajl'
json_js = open('http://www.json.org/json2.js').read
json_js.gsub!(/^(alert.*)$/, '/* \1 */')
some_js = <<-EOF
var A_1_val = new Array(7);
var B_1_txt = new Array(7);
A_1_val[0] = '111';
B_1_txt[0] = 'Ähtäri';
A_1_val[1] = 'Barsebäck slott';
B_1_txt[1] = '新宿区';
EOF
result = Johnson.evaluate(<<-EOF)
JSON.stringify([ A_1_val, B_1_txt ])
EOF
ruby_result = Yajl::Parser.parse(result)
puts ruby_result.inspect
which gives the result:
[["111", "Barseb\303\244ck slott", nil, nil, nil, nil, nil], ["\303\204ht\303\244ri", "\346\226\260\345\256\277\345\214\272", nil, nil, nil, nil, nil]]