Class and test for Json Directory connector