I\'m making a RESTful webservice and I want the items that are posted to the JSON file to have an Id. I\'ve been searching everywhere but couldn\'t find anything on how to do th
While it's not clear from what you want to auto increment, When your server gets the post, it can iterate over the result and add the required ID.
After all, you can't expect the user to give you an internal id for your system for every data strcutre he passes you.
Just the same way mysql doesn't expect you to provide an id if there's an id that's auto increment.
My suggestion : Loop over the incoming json and apply your own id, from the db or what not.