Json validation with json-schema

Thank you,
I’m not sure I can get the time to code it, but in case I do; can you point me to the right direction? I’ve never read the codemirror source before.