JSON manipulation ready

TODO: finish creating events