Implemented json/rest package.