[#409331] Capture HTML table data, pass to Ruby, pass back and display result in HTML text field — Hubert Wagner <lists@...>

Hello :

11 messages 2013/08/04

[#409336] Rakefile Error - Please Help — "Jennifer T." <lists@...>

Hi,

13 messages 2013/08/04
[#409341] Re: Rakefile Error - Please Help — Hassan Schroeder <hassan.schroeder@...> 2013/08/04

On Sun, Aug 4, 2013 at 7:41 AM, Jennifer T. <lists@ruby-forum.com> wrote:

Re: parsing json not work in variable

From: Sandor Szücs <sandor.szuecs@...>
Date: 2013-08-05 19:19:37 UTC
List: ruby-talk #409373
On 8/5/13 8:46 PM, gotostereo .. wrote:
> openorders = Btce::TradeAPI.order_list
> aaa = JSON.parse(openorders)
> print aaa
> 
> 
> Ruby200-x64/lib/ruby/gems/2.0.0/gems/json-1.8.0/lib/json/common.rb:155:in
> `initialize': no implicit conversion of Hash into String (TypeError)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

openorders = Btce::TradeAPI.order_list
# done, you already have a dictionary no parsing needed

-- 
All the best, Sandor Sz端cs

In This Thread

Prev Next