Utility method for creating custom JsonContext's