Using the following JSON for conversion to XML:
{
"OfferTerms":[],
"Meters":[
{
"EffectiveDate":"2019-03-01T00:00:00Z",
"IncludedQuantity":0.0,
"MeterCategory":"Virtual Machines",
"MeterId":"d0bf9053-17c4-4fec-8502-4eb8376343a7",
"MeterName":"F2/F2s Low Priority",
"MeterRates":{"0":0.0766},
"MeterRegion":"US Gov",
"MeterStatus":"Active",
"MeterSubCategory":"F/FS Series Windows",
"MeterTags":[],
"Unit":"1 Hour"
},
{
"EffectiveDate":"2017-02-01T00:00:00Z",
"IncludedQuantity":0.0,
"MeterCategory":"SQL Database",
"MeterId":"8b7672d4-16fc-446e-9935-cf2223c5290f",
"MeterName":"S3 Secondary DTUs",
"MeterRates":{"0":4.0177},
"MeterRegion":"US Gov TX",
"MeterStatus":"Active",
"MeterSubCategory":"Single Standard",
"MeterTags":[],
"Unit":"1/Day"
}
]
}
Which is a valid JSON per JSONLint, but complains during conversion:
jsontoxml-cli-linux-amd64 a.a
2019/04/08 09:41:14 invalid JSON found a.a
Using the jsontoxml-cli-linux-amd64 pre-built binary on:
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)
Using the following JSON for conversion to XML:
Which is a valid JSON per JSONLint, but complains during conversion:
Using the jsontoxml-cli-linux-amd64 pre-built binary on: