Add support for jsonifying through pointers.