PHP json schema validator. A rewriten code from http://jsonschemaphpv.sourceforge.net