It should, but I can't know where it's breaking without the full script - especially because you must have changed it. There's nothing inherently wrong with what you've posted here, assuming that status is a valid field in the json you receive.