Refactor core action to return a parser instance based on the response body

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.