Search code examples
javaconfigtypesafe

How to parse a map from config using TypeSafe in JAVA?


I've config like this with a map PurchaseDates :

AppConfig{

PurchaseDates:{"PURCHASE":"ENTITLEMENTDATE","STOCK_SUBSCRIPTION_PURCHASE":"SSENTITLEMENTDATE"}

}

How do I parse this PurchaseDates map in JAVA code using TypeSafe Config ?


Solution

  • TypeSafe has built-in support for reading maps from config , so no special handling is needed .