Added user permissions and a generic JSON parser.