• 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

Laravel Schedule not sending email

file_get_contents() without "Http" to access external URL [closed]

how to youtube api data to print in toolset metabox using a button click before save-post

How to fix this error : Ask your hosting provider to use PHP 7.2.5 or higher for both HTTP and CLI?

Symfony Mercure "Failed to send an update"

protect my blog content

add uri parameter to Route name in laravel

"There is no active transaction" when refreshing database in Laravel 8.0 test

Saving Data from form to database using AngularJS and php

Extract house numbers from address string

jQuery Ajax Post with data

Shopify password update using Shopify API

how to get value from array in laravel

Zig-zag scan an N x N array

WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

About Contact Privacy policy Terms and conditions