initially add json return support for API
flesh out json? method and test