json to string converson - still needs improvement