WriteJSON method, plus some benching and performance improvements.