Prepare JSON passing & get all device ids

Like the list of parameters!