Complete the code to import the JsonOutputParser from langchain.
from langchain.output_parsers import [1]
The correct import is JsonOutputParser from langchain.output_parsers.
Complete the code to create a JsonOutputParser instance with a given schema.
parser = JsonOutputParser([1]=schema)The parameter name for the schema is schema.
Fix the error in the code to parse a JSON string using the parser.
result = parser.[1](json_string)The method to parse JSON output is parse.
Fill both blanks to define a JSON schema and create the parser.
schema = [1](type="object", properties={"name": {"type": "string"}}) parser = JsonOutputParser([2]=schema)
The schema is defined using JSONSchemaType and passed as schema to the parser.
Fill both blanks to parse JSON output and extract the 'name' field.
parsed = parser.[1](json_output) name = parsed"name" print([2])
Use parse to parse, then access the 'name' key with brackets, and print the variable name.
