Track depth to throw error if parsing is closed before all JSON objects are complete. Fixes issue #18.