Correctly parse JSON input and store neatly into Mongo