I believe there's a bug that removes repeating lines from the success example and thus generates illegal json structure
The code which inserts the output is:
* @param $str string Insert one row in output.
*/
private function insert($str)
{
if(array_search($str, $this->out) === false)
{
$this->out[] = $str;
}
}
Now, because of the check for duplicates strings lines are removed.
I'm pretty sure there was good reason to add this check but the fact is that it garbles the output
For example (I've numbered the lines just for the explanation)
Now lines 6 and 9 are not inserted to the output because the are a duplicate of lines 2 and 5.
Nice and handy extension. Thanks.
I believe there's a bug that removes repeating lines from the success example and thus generates illegal json structure
The code which inserts the output is:
Now, because of the check for duplicates strings lines are removed. I'm pretty sure there was good reason to add this check but the fact is that it garbles the output
For example (I've numbered the lines just for the explanation) Now lines 6 and 9 are not inserted to the output because the are a duplicate of lines 2 and 5.
So the output becomes:
Removing the check creates a good leagal outout