added a few tests
switched to array constructor syntax
improved json handling
improved parsing