Added JSON object decoding to misc.convert