Added a pure php JSON polyfill, fixed tests