Add types in query

get id from json places