You simply cannot have specific keys defined. What you are essentially trying to say is that I want these fields, but not defining the type of these fields. Therefore, even assuming that it was hypothetically allowed, how would you know what to expect as a value for any of the fields.
education:{ "name":"", "year":, "qualification": }
From all this declaration we cannot determine the name again the JSON object? or string field? the same thing happens with other fields.
Thus, the solution to your request will have default values ββfor these fields. Ex. if the string has a "" (empty string) , if the object is null .
Then you can change them as and when you get the actual values.
source share