use normal perform.php and json API perform.json.php.