Add abstract JSON methods

As requested