Getting ID from ajax response of async-upload.php

I could but i really don’t want to post the work of others here, even if it’s open source code.

Rilwis Meta Box Class has a plupload field, which has a custom upload handler.
If you mind to take a look: https://github.com/rilwis/meta-box

resp: https://github.com/rilwis/meta-box/blob/master/inc/fields/plupload-image.php#L31

The answer is there. This code,or at least the idea, gives you much more control over the response.