Use JSON decoder to save allocating bytes myself.