Added json tool for model as_json api (ref #6)