Fixed issue where non-dict JSON was not detected
Added validator for misses value
Refactoring to reuse string validation logic