AWScala
AWScala copied to clipboard
DynamoDB Json Support
I want to put item to dynamodb like this format:
{ "url":{ "schema":"https", "body":"www.abc.com", "params":[ { "Content-type":"json" }, { "Content-type":"text/html" } ] } }
for this format i am using this code block:
Map("url" -> Map("schema" -> "https", "body" -> "www.abc.com", "params" -> List(Map("Content-Type" -> "json"), Map("Content-type" -> "text/html"))))
but it gives me the output in this format:
{ "url": { "schema": "https", "body": "www.abc.com", "params": { "datatype": "SS", "contents": { "(Content-Type,json)": "(Content-Type,json)", "(Content-type,text/html)": "(Content-type,text/html)" } } } }