Fix case explode on cases with attachments

@dannyroberts 
Probably, but this is why I tagged @dannyroberts. Was working with him and think this was broken in change to jsonobject