Q.1 Reading JSON Suppose I have a JSON file that has 200K properties in its root. How can I get the value from its key without loading the whole JSON into memory? and what if there are nested nodes instead of direct properties.
For example:
{
"contributor": {
"Anas": {
"github": "@anas43950",
"website": "x-code.ml",
"instagram": "anas.ansari46"
},
"Shubam": {
"github": "@shubhamp98",
"website": "shubhamp98.github.io",
"instagram": "@weshubh"
},
"Rahil": {
"github": "@ErrorxCode",
"website": "xcoder.tk",
"instagram": "@x__coder__x"
}
.... // goes on
.... // there are 'n' users
}
}
How can I get "Rahil" object without reading whole 'contributor' node ?
Q.2 Modifying JSON How can I change the website of 'Rahil' without reading or writing the whole JSON into memory or with the help of streaming ?