XSD to JSON Conversion CamelCase
Posted: Thu Dec 08, 2022 11:01 pm
				
				Is there a setting to force JSON conversions to use camel case for the elements? When I convert the XSD, the JSON holds whatever format the XSD is in? I want to always convert to camel case if possible?
			Code: Select all
        "PostalAddress": {
            "type": "object",
            "required": [
                "FirstLineAddress",
                "CityName",
                "PostalCode"
            ],
            "properties": {
                "FirstLineAddress": {"type": "string"},
                "SecondLineAddress": {"type": "string"},
                "ThirdLineAddress": {"type": "string"},
                "CityName": {"type": "string"},
                "StateProvinceCode": {"$ref": "#/$defs/StateProvince"},
                "PostalCode": {"type": "string"},
                "CountryCode": {"$ref": "#/$defs/Country"}
            }Code: Select all
        "PostalAddress": {
            "type": "object",
            "required": [
                "firstLineAddress",
                "cityName",
                "postalCode"
            ],
            "properties": {
                "firstLineAddress": {"type": "string"},
                "secondLineAddress": {"type": "string"},
                "thirdLineAddress": {"type": "string"},
                "cityName": {"type": "string"},
                "stateProvinceCode": {"$ref": "#/definitions/StateProvince"},
                "postalCode": {"type": "string"},
                "countryCode": {"$ref": "#/definitions/Country"}
            }