Json type helper procedures