• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

AJAX call fails with SyntaxError: Unexpected end of JSON input

javascriptphpjqueryajax


PHP Snippet 1:

var data = {};
 data['rawFiles'] =$('#projectIDs').val(); 
 data['metadata'] = $('#getData').val();
  data['type']=  $('#submitType').val();
  data['pid']='csv';
   data['command']='data/qcTest'

PHP Snippet 2:

$.ajax({type: "POST", url: posturl, data: JSON.stringify(data), dataType: 'json'})

Related Snippets

What will the best solution for this multiple optional filter?

How to implement placeholder in a php file for moodle plugin?

Nginx disallowing execution of PHP in uploads directory with Magento

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

Phpunit partial mock + proxy Entity

PHP returning an error message and false

Doctrine ORM: Excluding Records Based on Values of Nested Relationships

Xdebug in Laravel is not working with VSCode

Filter array by skipping every nth element from the end

How to change 'users' auth table and use another instead Laravel

Issue with laravel eloquent model property

html-php form submission after validation through JavaScript [closed]

how to search for a file with php

Parsing JSON File to array in PHP

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

About Contact Privacy policy Terms and conditions