The prefect guide mentions that string blocks and ...
# ask-community
v
The prefect guide mentions that string blocks and Json blocks are deprecated and Variables should. be used instead. I have a question on how to replace the Json Blocks with variables. - rather than creating a separate variable for each key . For eg:
cis_endpoint_user = JSON(
value={
"url": os.environ.get("CIS_ENDPOINT_URL"),
"user": os.environ.get("CIS_USERNAME"),
},
)
self.save_block(cis_endpoint_user, "cis-endpoint-user")