Add JSON array test
Document most of public API