[BUG] Fixed json_encode bug in RequestHelper.php and others