parse esr string to json object for correct evaluation