Problem Description

Given a JSON object. If invalid, print INVALID_JSON. Else print how many keys it has.

Input Format

One line json.

Output Format

One integer or INVALID_JSON.

Sample Test Case

Input:
{"a":1,"b":2}
Output:
2

Constraints

Total length

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next