I am trying to read some data from MongoDB. An example data is below:
Code: Select all
info: "Hello World"
If I read a document as shown above from MongoDB the document is returned as JSON Object which is a map field.
But the metadata field is returned as string.
From the above example, is there a way to get the metadata field as a map field as well? If not, how do I convert the string field into map field?