Bunny83 / SimpleJSON

A simple JSON parser in C#
MIT License
736 stars 294 forks source link

key of a node #7

Closed s1mar closed 1 year ago

s1mar commented 7 years ago

is there any provision of extracting the key of a JSONNode ?

Bunny83 commented 7 years ago

No, since the relation is just a one-way relationship. The child's of a JSONObject do not know their parent. A JSONNode doesn't have any key. Only the dictionary In a JSONObject has a key.