Adding reverse mapping from object to JSON.