Fixed bug in Json toString method