Json output from the motoko canister

I have motoko canister with following data

name
place
profile-image

stored in an hashmap.

Can i convert the output to json is there any library out there?
Thanks