[SalesForce] How to deserialize JSON to sObject

I have following code and I'm trying to deserialize json array to list of sObjects, but I'm getting following exception without any message:

System.JSONException:

String dzejson = '[{"attributes":{"name":"Test"}}]';

List<sObject> objs = (List<sObject>)JSON.deserialize(dzejson, List<sObject>.class);

System.Debug(objs);

Best Answer

JSON should have following format:

String dzejson = '[{"attributes":{"type":"Contact"}, "lastName":"Test"}]';