Fix json decoding of maybe value