Input in text to json

asked 2018-07-19 08:52:33 -0600

ThemeSaum gravatar image

Hello, I have an entry from Karla in this format:

"Type_1: {"paylaod":1}"

"Type_x: {"paylaod":9}"

The entry is a text with a prefix "type_x" and I would like to convert it to JSON in order to use all the features of this tool.

I've thought about doing it with a function in Groovy, that I deleted the prefix and returned the Json. What is the best way to do this?

edit retag flag offensive close merge delete