Prepare JSON passing & get all device ids

Great idea! Not sure it's ```JSONException``` that would be thrown ... pretty sure it's not :(