diff --git a/test/api-test.js b/test/api-test.js
index db7b494..9046320 100644
--- a/test/api-test.js
+++ b/test/api-test.js
@@ -215,6 +215,13 @@ vows.describe('merge data into markup').addBatch({
return common.createTest('test-20', map);
}()
+ ),
+
+ '(21) Keep your place after handling nested objects': (
+
+ function() {
+ return common.createTest('test-21');
+ }()
)
}
diff --git a/test/fixtures/test-21.html b/test/fixtures/test-21.html
new file mode 100644
index 0000000..59010b0
--- /dev/null
+++ b/test/fixtures/test-21.html
@@ -0,0 +1,11 @@
+
diff --git a/test/fixtures/test-21.json b/test/fixtures/test-21.json
new file mode 100644
index 0000000..d87a55a
--- /dev/null
+++ b/test/fixtures/test-21.json
@@ -0,0 +1,31 @@
+{
+ "entries": [
+ {
+ "custid": 10101,
+ "created": "2001-01-01",
+ "user": {
+ "name": "John Q. User",
+ "city": "Atlanta",
+ "state": "GA"
+ }
+ },
+ {
+ "custid": 20202,
+ "created": "2002-02-02",
+ "user": {
+ "name": "Jane Q. User",
+ "city": "Mobile",
+ "state": "AL"
+ }
+ },
+ {
+ "custid": 30303,
+ "created": "2003-0303",
+ "user": {
+ "name": "Professor X",
+ "city": "Menlo",
+ "state": "CA"
+ }
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/fixtures/test-21.out b/test/fixtures/test-21.out
new file mode 100644
index 0000000..3a290cd
--- /dev/null
+++ b/test/fixtures/test-21.out
@@ -0,0 +1,29 @@
+
+
+
2001-01-01
+
+
John Q. User
+
Atlanta
+
GA
+
+
10101
+
+
+
2002-02-02
+
+
Jane Q. User
+
Mobile
+
AL
+
+
20202
+
+
+
2003-0303
+
+
Professor X
+
Menlo
+
CA
+
+
30303
+
+