TARGET: Store data to Cosmos DB without beautifying the json (remove white spaces)
PROBLEM: New Document is createed in CosmosDB with beautified, but it has white spaces in the content memory size of the document is almost 100kb. copied the content into a physical text file and removed the spaces so memory size only 50kb. My understanding from the azure cosmos db documentation price will calculate based on the storage of the documents and throughout is that correct ?
I tried like below by storing whole json into a object, Is there any other best possible way to decrease the size of the document.
(enter image description here)(1)
I would appreciate help and tips to make best possible way.