Hi @Michael Coleman ,
Welcome to Microsoft Q&A platform and thanks for posting your query.
As I understand your requirement here, you want to remove the square brackets from start and end of the JSON content. As you mentioned you are using Azure syanpse analytics , I hope you can leverage Syanpse pipelines in order to achieve the requirement.
You can follow the below steps :
Step1: Create a dataset pointing to the json file in ADLS.
Step2: Use LookUp activity in Synapse pipeline and use the newly created dataset in the lookup to fetch the JSON content as the LookUp output.
Step3: Create a variable in the pipeline say myvar
and pass the following expression in its value: @substring(string(variables('var')),add(indexof(variables('var'),'"'),1),add(lastindexof(variables('var'),'"'),-2))
.
Output of the set variable activity will replace the brackets of the source JSON .
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote button whenever the information provided helps you.
Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators