JSON: refactoring to abstract json4s library away into a "driver"