Migration to restful json API