add json revert, export & import function.