I am loading imagery as raster layer through a URL. I need to store its metadata as JSON string in db for future reference.
I tried getting the metadata via
layer.metadata() and then tried to get
json.dump() for that object but an empty string was returned.
When I use the
layer.htmlMetadata() function I do get all the information but I need all the details as JSON.