As I've never said "The Pledge of Allegiance", this seems to be the original one, I'm guessing there might be some other modern variation schools use today, but anyways:
> I pledge allegiance to my Flag and the Republic for which it stands, one nation, indivisible, with liberty and justice for all.
I wouldn't be surprised that most people see it as a joke today, given the "with liberty and justice for all" is far from reality today, and it's very obvious to anyone.
> I don't know if other countries have pledges like this but on the surface it seems OK to me
Generally not, AFAIK. On the surface it seems like blatant propaganda to me, and kind of extremist, something you'd see not in a modern country typically.