Helper that adds JSON functionalities