In my previous question I had a problem with sending parameters over the command line to an PHP file. The PHP is sending an json back, but I only receive true or false.
Previous question: Rails, PHP and parameters
New problem: Ruby.rb
data = system('php public/jira.php param')
puts data
PHP
$output = array(
"total" => $total
);
echo json_encode($output);
EDIT:
Answer:
data = JSON.parse(data)
puts data['total'] #5