use stringified json in text instead of json type

Travis CI does not have postgres >=9.2 yet