public static function arrayToJSONI18N(array $entities, array $locales=[], $depth=0) {
		foreach($entities as $k=>$entity)
			$entities[$k] = $entity->toArrayI18N($locales, $depth);
		return json_encode($entities);
	}
public static function arrayToJSONI18N(array $entities, array $locales=[], $depth=0) {
		foreach($entities as $k=>$entity)
			$entities[$k] = $entity->toArrayI18N($locales, $depth);
		return json_encode($entities);
	}
public static function arrayToJSONI18N ( array $ entities , array $ locales = [ ] , $ depth = 0 ) { foreach ( $ entities as $ k => $ entity ) $ entities [ $ k ] = $ entity -> toArrayI18N ( $ locales , $ depth ) ; return json_encode ( $ entities ) ; }
Convert many entities to JSON with translations.
@param  Entity[] $entities
@param  array    $locales
@param  integer  $depth
@return string
Convert many entities to JSON with translations .