fixed trailing ',' causing the leads parsing to fail
splanInput requires a raw String instead of parsed json/list instance
refactored time preference extraction into a utilities function