I can't really think of a use case for this within an Ethereum contract. When you talk about human readable formats, it seems to me like you're looking to make a user interface.
I would recommend looking into Truffle. It's an excellent framework for building
web3 applications, which are essentially just websites that can talk to contracts on the Ethereum blockchain. Then you can just make a
web3 call to get