Dave Richardson Posted August 9, 2019 Share Posted August 9, 2019 The REST data source I am using provides data in JSON format.In JSONit is valid to have keys with spaces, and this is the problem. Spaces in key namesare not allowed in XML as the space is a delimiter. Is there anyway to replace spaces in key names with, say, an underscore prior to converting to XML(i.e. "Business Unit" --> "Business_Unit") either in the data source or later on It would be hugely beneficial for TDV to handle all valid JSON responses if the proper procedure is to convert a JSON response to XML directly in the data source. Link to comment Share on other sites More sharing options...
Motsu Aboshi Posted August 9, 2019 Share Posted August 9, 2019 There's a server-wide configuration setting for this, I forget what it's actually called. Search for JSON in Administration -> Configuration (or have your admin search for it). Link to comment Share on other sites More sharing options...
Donald Johnson Posted August 12, 2019 Share Posted August 12, 2019 Dave, Your jpg's are on your 'C' drive. <p> <img alt="" src="C:UsersrichadavOneDrive - Husky EnergyDocumentsaaa_CCP Data Hub.jpg"> <img alt="" src="C:UsersrichadavOneDrive%20-%20Husky%20EnergyDocumentsaaa_CCP%20Data%20HubJSON%20to%20XML%20required%20configuration%20change.jpg"> <img alt="" src="C:UsersrichadavOneDrive%20-%20Husky%20EnergyDocumentsaaa_CCP%20Data%20HubJSON%20to%20XML%20required%20configuration%20change.jpg"> <img alt="" src="C:tempJSON_to_XML_required_configuration_change.jpg"> </p> We can't see them. Link to comment Share on other sites More sharing options...
Dave Richardson Posted August 15, 2019 Author Share Posted August 15, 2019 You are correct. Thank-you for your quick response! For future reference, in TDV Studio 7.0 it can be found here under Administration --> Configuration: Data Sources REST Sources Replace Invalid JSON Name for XML Conversion: True or False Link to comment Share on other sites More sharing options...
Dave Richardson Posted August 15, 2019 Author Share Posted August 15, 2019 I've attached the image which simply shows the actual configuration change location that I mentioned in my previous post. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now