Still learning Python and trying to combine 2 JSON objects.
Primary Data Set:
{
"form-fields": [
{"type": "text", "x-position": 0, "y-position": 0, "field": "buyer-1"},
{"type": "text", "x-position": 0, "y-position": 10, "field": "buyer-2"}
]
}
Secondary Data Set:
{
"form-data": [
{"field": "buyer-1", "value": "John Smith"},
{"field": "buyer-2", "value": "Susan Smith"}
]
}
Intended Result: With "value" appended to the original object.
{
"form-fields": [
{"type": "text", "x-position": 0, "y-position": 0, "field": "buyer-1", "value": "John Smith"},
{"type": "text", "x-position": 0, "y-position": 10, "field": "buyer-2", "value": "Susan Smith"}
]
}