src/main/java/pl/jalokim/propertiestojson/util/PropertiesToJsonConverter.java
public String convertPropertiesFromFileToJson(String pathToFile, String... includeDomainKeys) throws ReadInputException, ParsePropertiesException {
        return convertPropertiesFromFileToJson(new File(pathToFile), includeDomainKeys);
    }
public String convertPropertiesFromFileToJson(String pathToFile, String... includeDomainKeys) throws ReadInputException, ParsePropertiesException {
        return convertPropertiesFromFileToJson(new File(pathToFile), includeDomainKeys);
    }
public String convertPropertiesFromFileToJson ( String pathToFile , String ... includeDomainKeys ) throws ReadInputException , ParsePropertiesException { return convertPropertiesFromFileToJson ( new File ( pathToFile ) , includeDomainKeys ) ; }
Generate Json by given path to file with properties with only included domain keys.

@param pathToFile        path to File
@param includeDomainKeys domain head keys which should be parsed to json <br>
example properties:<br>
object1.field1=value1<br>
object1.field2=value2<br>
someObject2.field2=value3<br>
filter "object1"<br>
will parse only nested domain for "object1"<br>
@return simple String with json
@throws ReadInputException       when cannot find file
@throws ParsePropertiesException when structure of properties is not compatible with json structure
Generate Json by given path to file with properties with only included domain keys .