Saving Form Data to Plugin Record via Javascript
Assuming you've got a controller endpoint in your plugin that has an action, the pseudocode for a simple solution could be something like:


Grab the JSON data from post.
json_decode it.
Loop through the JSON data.
Instantiate a new record and assign the properties to it inside the loop.  


i.e.

$record = new GeocodeFile_LocationsRecord();
$record-&gt;id = $jsonData['id];
$record-&gt;type = $jsonData['type'];
...
$record-&gt;save();