Programmatically create DDB JSON item

I cannot figure out how to programmatically create an AWS DynamoDB containing a JSON object using aws_dynamodb_table_item. The JSON item will contain outputs from other resources and modules, so needs to be composed. Can someone point me to an example?