• 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

Transpose and flatten multiple rows of array data [duplicate]

SilverStripe unable to populate multiple member Childs

How to skip cart page on woocomerce for certain products only?

Laravel s3 upload file with metadata using pre-signed url

RuntimeException: Unable to create the cache directory (/var/www/sonata/app/cache/dev)

Laravel: HTML in notification

dockerizing Laravel + vue

Remove "estimated for {country}" text after tax amount in Woocommerce checkout page

Log a user out of a website when they put their computer to sleep

PHP array slice from position + attempt to return fixed number of items

PHPExcel How to set conditional formatting to change cell background color based on cells values

php mysql + create a friend request system

how to identify the web server name of remote host

How to test a php login connected to a mysql db through xampp?

Filter array by skipping every nth element from the end

About Contact Privacy policy Terms and conditions