Problem Description

Line1 is JSON object, line2 is a dot path like a.b.c. If path exists print value as JSON. If any step missing, handle error and print null.

Input Format

Line1: JSON object. Line2: path.

Output Format

One line JSON output.

Sample Test Case

Input:
{"a":{"b":2}} a.b.c
Output:
null

Constraints

Total input length up to 2e5.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next