-
Please provide command tricks to get below expected JSON output without quotes to Integers, Boolean values. ****** XML INPUT ******
****** Expected JSON Output ****** "outputImageProperties": { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The XML parser assumes everything is a string - you can do this to attempt to parse all the scalar values into their types:
This selects all the string values and runs them through 'from_yaml'. That function will convert to numbers/floats/booleans if it can, otherwise it will leave the string value as is. |
Beta Was this translation helpful? Give feedback.
The XML parser assumes everything is a string - you can do this to attempt to parse all the scalar values into their types:
This selects all the string values and runs them through 'from_yaml'. That function will convert to numbers/floats/booleans if it can, otherwise it will leave the string value as is.