JSON unit test; libjansson driver fixes