Replacing {{placeholders}} in html file

More
2 years 3 weeks ago #23977 by admin
This python script loads json object values into variables

import json
import etltools

def read_json(file_path):
    # Open the JSON file and load its contents
    with open(file_path, 'r') as file:
        data = json.load(file)

    # Print the key-value pairs
    for key, value in data.items():
        etltools.SetVariable(key,value)

file_path = 'C:\Support\Case 41\source.json'
read_json(file_path)
Result.Value = 1

I hope you will find it useful

Mike
ETL Architect
The following user(s) said Thank You: prashant

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save