Question: I'm trying to POST some JSON data to be processed by PHP.
When it arrives on the server-side, the data is escaped and I can't reliably unescape it.

```
    var jsondata = '{"name":"Foo","email":"name@address.com"},{"name":"Bar","email":"name@address.com"}';
    $.ajax({
        type: "POST",
        url: "save.php",
        dataType: "json",
        processData: false,
        data: { json: '['+jsondata+']'},
    });

```

`$_POST['json']` then contains:

```
[{\"name\":\"Foo\",\"email\":\"name@address.com\"},{\"name\":\"Foo\",\"email\":\"name@address.com\"}]

```

How can I send unencoded JSON post-data? I thought `processData: false` would cover that.

---

To illustrate the error server-side:

```
<?php

$_POST['json-bad'] = '[{\"name\":\"Foo\",\"email\":\"name@address.com\"},{\"name\":\"Foo\",\"email\":\"name@address.com\"}]';
$data_bad = json_decode($_POST['json-bad']);
var_dump($data_bad); // returns "NULL"

$_POST['json-good'] = '[{"name":"Foo","email":"name@address.com"},{"name":"Bar","email":"name@address.com"}]';
$data_good = json_decode($_POST['json-good']);
var_dump($data_good); // returns array as expected

?>

```

Answer: 
You have to call `IsolatedStorageSettings.Save` yourself. As mentioned in the 'Tips and Warnings' section at the bottom of the [class reference page](http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragesettings%28v=vs.95%29.aspx), you have to save it yourself in order to make sure it's written to the file.

> 
> The IsolatedStorageSettings class is not automatically saved
>  to disk when values are written. Saves are done in a finalizer, which is
>  usually but not always run when the application shuts down. To ensure saves are
>  actually performed we need to call the Save method after each write or set of
>  writes.
> 
> 
>
Here is the documentation for the IsolatedStorageSettings.Save method dated February 14, 2014:

<http://msdn.microsoft.com/en-us/library/windowsphone/develop/system.io.isolatedstorage.isolatedstoragesettings.save(v=vs.105).aspx>

And an excerpt the from it (see the Caution):

> 
> However you don’t have to call the Save method on Windows Phone. The
>  data that you store in the IsolatedStorageSettings object is saved
>  automatically.
> 
> 
> 

My dev experience also proves that - the settings are saved automatically without the need to call the Save method explicitly. But note that it happens only when you close the whole app, excatly as it is stated in MSDN:

> 
> Data written to the IsolatedStorageSettings object is saved when the
>  application that uses the class is closed. If you want your
>  application to write to isolated storage immediately, you can call the
>  Save method in application code.
> 
> 
>