I've made a Macro function that takes a JSON object and rolls on a table in the manner specified by that JSON. Now I want the function to check if the result of the table roll is itself a JSON object, so that the macro can call itself and roll on nested tables recursively. However I cannot find a function in the documentation that checks if a string is valid JSON. Is there such a function or will I have to make something myself?
#How to check if a string is valid JSON?
1 messages · Page 1 of 1 (latest)