No, that's not correct:
Initial json support in PG was added in early 2012
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit...
whereas mongodb was made public in 2009, according to wikipedia:
https://en.wikipedia.org/wiki/MongoDB
I don't see how Mongo was built based on Postgres, either?