Grammaticality Representation in ChatGPT as Compared to Linguists and Laypeople