src/FS/File/Configuration/Converter.php
protected static function loadJson( $fileName )
	{
		$json	= FS_File_Reader::load( $fileName );
		$json	= ADT_JSON_Converter::convertToArray( $json );
		foreach( $json as $sectionName => $sectionData )
		{
			foreach( $sectionData as $pairKey => $pairData )
			{
				$pairData	= array_merge( array( 'key' => $pairKey ), $pairData );
				$data[$sectionName][]	= $pairData;
			}
		}
		return $data;
	}
protected static function loadJson( $fileName )
	{
		$json	= FS_File_Reader::load( $fileName );
		$json	= ADT_JSON_Converter::convertToArray( $json );
		foreach( $json as $sectionName => $sectionData )
		{
			foreach( $sectionData as $pairKey => $pairData )
			{
				$pairData	= array_merge( array( 'key' => $pairKey ), $pairData );
				$data[$sectionName][]	= $pairData;
			}
		}
		return $data;
	}
protected static function loadJson ( $ fileName ) { $ json = FS_File_Reader :: load ( $ fileName ) ; $ json = ADT_JSON_Converter :: convertToArray ( $ json ) ; foreach ( $ json as $ sectionName => $ sectionData ) { foreach ( $ sectionData as $ pairKey => $ pairData ) { $ pairData = array_merge ( array ( 'key' => $ pairKey ) , $ pairData ) ; $ data [ $ sectionName ] [ ] = $ pairData ; } } return $ data ; }
Loads Configuration Data from JSON File.
@access		protected
@static
@param		string		$fileName		File Name of JSON File.
@return		array
Loads Configuration Data from JSON File .