Getting error in JSON advance for groovy dynamic script?