I am working on one challenge which I am trying to solve, but due to lack of experience hit a roadblock. I would greatly appreciate any help from gurus on this site :)
I need to convert JSON input to property format. Example: Given JSON:
{
"name": "John",
"age": 30,
"married": True,
"cars": [
{"model": "BMW 230", "mpg": 27.5},
{"model": "Ford Edge", "mpg": 24.1}
]}
Need to be converted to following format once script executed:
name="John"
age=30
married=true
cars.0.model="BMW 230"
cars.0.mpg=27.5
cars.1.model="Ford Edge"
cars.1.mpg=24.1
I found this online converter which works: https://tools.fromdev.com/json-to-property-converter.html
But because in my case i need to integrate to Azure pipeline, online version will not work for me
Any help would be greatly appreciated!
