json content is converted to angularJs friendly format.