Jira issue originally created by user bountin:
Since version 9.2 PostgreSQL has a new data type for JSON fields: http://www.postgresql.org/docs/9.2/static/datatype-json.html
The current json_array datatype works on this field if it was not created by Doctrine but manually but it would be nice to support the field type also for schema generation.
I can offer a Pull Request for this change but I have not found a method for determining the database version.
Comment created by dlondero:
It would be great to have JSON datatype! In the mean time the solution is creating a "Custom Mapping Type", right?
Comment created by @deeky666:
[~beberlei] We could adopt the GuidType implementation here with checking on the platform if it supports native json type and use that instead. What do you think?
Patch supplied in PR: #469
Comment created by @doctrinebot:
A related Github Pull-Request [GH-469] was closed:
Issue was closed with resolution "Fixed"
Comment created by benedikt.allendorf:
It seems that this feature is already in the documentation (http://doctrine-dbal.readthedocs.org/en/latest/reference/types.html#mapping-matrix) although it is only included in the next version of DBAL (2.5).