I have a dictionary that looks like this:
{ \"username\": \"SHAURYA\", \"stocks\": [{ \"name\": \"WXYZ\", \"count\": 2, \"price\"
MongoDB is case-sensitive. Use "stocks" instead of "Stocks" in your push operation, and the subdocument will be correctly append to the array.