preparing JSON library for flask++; complete writing feature