i am trying file uploading to php my server.file and data uploading through multi part /form-data ,the file and data received on php server but in my php server return json
Your JSON response would be a kind of associative array in php. Encode your array data into JSON using "json_encode" and return values as you want .
$arr = array('status' => $status, 'status2' => $status2, );
echo json_encode($arr);
NOTE: If you are using ajax to call php file then do not use any php echo/print in that file and not even HTML. ECHO only "json_encode();" Nothing else.