Complete the functionality of SearchDirectory.getJsonParameters()