Way more testing!
Finally finished writing the complex JSON test. It works.