Is there a simply way to convert this :
{ \'A\': {\'a2\': \'a3\',\'a4\': \'a5\'}, \'B\': {\'b2\': \'b3\',\'b4\': \'b5\'} }
to this :