Hello Appian Community,
I am currently using AI Skills in Appian to extract data from a document. The extracted data is being saved as text at the process model level. However, I need to convert this text into JSON format for further processing.
I attempted to use the a!fromJson() function to convert the text into JSON, but I am encountering an error during the conversion.
a!fromJson()
Here is what I have tried:
Text
pv!extractedData
a!fromJson(pv!extractedData)
Any guidance or examples would be greatly appreciated!
Discussion posts and replies are publicly visible
Hi RamGanesh
You are passing text as input to the Json function, JSON function doesn't accept text as input as per my knowledge, you can save the extracted data into a variable which is of type CDT, Records or map based on your convenience, after that convert the pv!variable(stored extracted data) into JSON.try this once, hope you will get the expected output!
If you want to convert extracted data to JSON, use toJson() function, not fromJson() function
ya ok thanks Sandhyab4212