Avoid double-parsing json literals when we know they are valid.