Updated JSON examples, added connect function test