Aug-22-2023, 07:24 PM
I am using ttp template to parse a data from command line
This is my code
This is my code
import json from ttp import ttp temp=""" System Info{{_start_}} IPv4 configuration : {{ipv4_configuration}} IPv6 configuration : {{ipv6_configuration}} """ data_to_parse=""" System Info IPv4 configuration : Disabled IPv6 configuration : Disabled """ parser = ttp(data=data_to_parse, template=temp) parser.parse() result = json.loads(parser.result(format="json")[0])[0] print(result)My output is this
Output:{ipv4_configuration:'Disabled'}
why is ipv6 not appearing in output?