get only plans with pid = 0

change the way json objects are returned