Use id as id
Forgot flag as attribute. Attach id to returned JSON
D'oh