Renamed _mapToDocument to _prettyJson