Dear Community,
I’m building a process that will parse through a JSON file that is stored as a string in a SQL server. On the server, the JSON string looks something like this:
[{“boundingBox”:“43,86,511,139”,“lines”:[{“boundingBox”:“44,86,418,67”,“words”:[{“boundingBox”:“44,86,188,67”,“text”:“Nasdaq”},{“boundingBox”:“244,91,44,49”,“text”:“&”},{“boundingBox”:“299,91,163,52”,“text”:“AMEX”}]},{“boundingBox”:“43,161,319,22”,“words”:[{“boundingBox”:“43,161,55,16”,“text”:“Stocks”},{“boundingBox”:“104,161,15,17”,“text”:“in”},
etc
but when I query it from UiPath, what is loaded into my datatable looks like this:
“[{”“boundingBox”“:”“43,86,511,139"”,““lines””:[{““boundingBox””:““44,86,418,67"”,”“words”“:[{”“boundingBox”“:”“44,86,188,67"”,““text””:““Nasdaq””},{““boundingBox””:““244,91,44,49"”,”“text”“:”“&”“},{”“boundingBox”“:”“299,91,163,52"”,““text””:““AMEX””}]},{““boundingBox””:““43,161,319,22"”,”“words”“:[{”“boundingBox”“:”“43,161,55,16"”,““text””:““Stocks””},{““boundingBox””:““104,161,15,17"”,”“text”“:”“in”"},
etc
For some reason, my quotations have become double quotations, which is throwing off the JSON deserialize operation downstream.
Anyone has an idea why it is doing this?
I know I probably could just use the replace activity and fix it, but I find this inelegant and would prefer to fix the problem from the source. Thanks!
Have a nice day,
Philippe