public function theJsonShouldBeEqualTo(PyStringNode $content)
{
$actual = $this->getJson();
try {
$expected = new Json($content);
} catch (\Exception $e) {
throw new \Exception('The expected JSON is not a valid');
}
$this->assertSame((string) $expected, (string) $actual, "The json is equal to:\n" . $actual->encode());
}