Max recursion depth exceeded - JSON Type query w/ Postgresql
The problem appears to be that you're using `PostgresqlDatabase` as opposed to `PostgresqlExtDatabase`. The former does not know how to parse JSON things into SQL, while the latter does. I admit the error message could be more helpful, but that's the issue. If you switch your DB initialization you'll be set.
 Sweet, thanks for the help.
Hello,  

I'm just getting started with peewee and am using Postgresql with a few JSON type columns.  When trying to query on one of the elements in the JSON document I get a maximum recursion level exceeded error. 

The code I have so far is here: https://gist.github.com/wmturner/7288bbf715d81df916cb6b561057e490

And the error looks like:

 File "/usr/local/lib/python2.7/dist-packages/peewee.py", line 1823, in parse_node
    csql, cparams = self.parse_node(param)
  File "/usr/local/lib/python2.7/dist-packages/peewee.py", line 1823, in parse_node
    csql, cparams = self.parse_node(param)
  File "/usr/local/lib/python2.7/dist-packages/peewee.py", line 1823, in parse_node
    csql, cparams = self.parse_node(param)
  File "/usr/local/lib/python2.7/dist-packages/peewee.py", line 1823, in parse_node
    csql, cparams = self.parse_node(param)
  File "/usr/local/lib/python2.7/dist-packages/peewee.py", line 1806, in parse_node
    sql, params, unknown = self._parse(node, alias_map, conv)
  File "/usr/local/lib/python2.7/dist-packages/peewee.py", line 1792, in _parse
    elif (isclass(node) and issubclass(node, Model)) or \
  File "/usr/lib/python2.7/inspect.py", line 65, in isclass
    return isinstance(object, (type, types.ClassType))
RuntimeError: maximum recursion depth exceeded while calling a Python object

I'm probably just doing it wrong or not seeing a glaring error, so any help would be greatly appreciated!

Best,
-William