using JSON dates internally and moment for parsing