I think I'm using Redbean 3.3.7 (the all-in-one download from the website), but I can't find a version number in the code.
I am receiving some json encoded data and want to process it with R::graph(), but I'm getting an error.

$json = '{"id": "","title": "Test Article","slug": "test-article","content": "&lt;p&gt;This is a test article&lt;/p&gt;"}';

$decoded = json_decode($json, true);


This gives me an array

var_dump($decoded)

array(4) {
  ["id"]=&gt;
  string(0) ""
  ["title"]=&gt;
  string(12) "Test Article"
  ["slug"]=&gt;
  string(12) "test-article"
  ["content"]=&gt;
  string(29) "&lt;p&gt;This is a test article&lt;/p&gt;"
}


Also

echo gettype($decoded);


returns "array".

But when I try this:

$bean = R::graph($decoded);


I get a RedBean_Exception_Security error with the message "Expected array but got :string";
rb.php line 9029

What am I doing wrong?
And more importantly, how do I fix it?

Thanks.


Question: Word for someone who finds oil reservoirs
Answer: Both my father and his father made their livings at precisely this job. The term used for it within the petroleum industry (in the United States, anyway) is exploration geologist. 

A person who conducts seismic mapping of the strata of rock and other deposits in a particular area in order to help assess their potential as a source for oil or natural gas is called a stratigrapher.