Using javax.script.ScriptEngine uses a lot of memory which can cause problems when running the test suite in somewhat constrained environments (ex. CI jobs)
Replace with a crude JSON parser for the particular use case, based on RegEx.