json-module: documentation and test for duplicate keys and max. nesting