transform any object to JSON and transform JSON to any object