fixed REST module to work with sequential arrays in json comparison