json checker boiler plate