Json string not valid
deenrookie opened this issue · comments
Deen commented
When I parsed this with jsondumper
<?php
class A{
function a($b){
eval($b);
}
}
class B{
function __construct(){
$this->session = new A();
}
}
class C extends B{
}
class C extends B{
}
The output not right.
But the site https://php-parser.com/ output is right. The site source code in open?
Deen commented
I have solved it. astString = strings.Replace(astString, "}{", "},{", -1)