Implement unpack_json decorator