chjj/node-tiny — pull request #5 by Tenzer (2012-06-09 09:54:30+00:00)
Title: dump() generates invalid JSON

The last object had a comma at the end, which is invalid in JSON. This commit checks if we are working on the last item in the dump, and if we are, we don't print the comma at then end - and line break, which removes the blank line above the final `}`.