a minimal json utility implemented