ScalarResolver for JSON Schema
See Chapter 10.2. Failsafe Schema
Resolve (detect) the tag of the scalar node of the given type.