add and edit jsonify method