public function writelnJson($jsonString)
    {
        $keyColor = preg_replace('/"(\w+)": /', '<info>$1</info>: ', $jsonString);
        $valColor = preg_replace('/"([^"]+)"/', "<fg=cyan>'$1'</fg=cyan>", $keyColor);

        $this->output->writeln(stripslashes($valColor));
    }
public function writelnJson($jsonString)
    {
        $keyColor = preg_replace('/"(\w+)": /', '<info>$1</info>: ', $jsonString);
        $valColor = preg_replace('/"([^"]+)"/', "<fg=cyan>'$1'</fg=cyan>", $keyColor);

        $this->output->writeln(stripslashes($valColor));
    }
public function writelnJson ( $ jsonString ) { $ keyColor = preg_replace ( '/"(\w+)": /' , '<info>$1</info>: ' , $ jsonString ) ; $ valColor = preg_replace ( '/"([^"]+)"/' , "<fg=cyan>'$1'</fg=cyan>" , $ keyColor ) ; $ this -> output -> writeln ( stripslashes ( $ valColor ) ) ; }
Rewrite json with colors and unescaped slashes

@param string $jsonString
Rewrite json with colors and unescaped slashes