This is a bit of a dubious hack since anyone that tries to turn on both serde and serde_json are screwed.