Fix JsonContext::encode method to use  and not ->getJson()
Print wrong node in JsonContext::theJsonNodeShouldExistInEachNode