From: | Alexander Farber <alexander(dot)farber(at)gmail(dot)com> |
---|---|
To: | |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: How to retrieve jsonb column through JDBC |
Date: | 2016-08-29 18:23:58 |
Message-ID: | CAADeyWjwtxOsikA_EqAG6s7fkehKVGjUsgT18PnSA-JjzQrgFg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, Aug 29, 2016 at 7:50 PM, Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:
> On Sat, Aug 27, 2016 at 5:39 AM, Alexander Farber
> <alexander(dot)farber(at)gmail(dot)com> wrote:
> >
> > List last_tiles = (List) JSON.parse(rs.getString("last_
> tiles"));
> >
> > has not work for me even though the string is:
> >
> > [{"col": 7, "row": 8, "value": 1, "letter": "A"}, {"col": 7, "row": 7,
> > "value": 2, "letter": "B"}, {"col": 7, "row": 9, "value": 2, "letter":
> "C"}]
> >
> > but it is probably the problem of the Jetty class I am using and not of
> > JDBC...
>
> huh. what exactly is failing? are you getting a parse exception?
>
fails with:
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to
java.util.List
Regards
Alex
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2016-08-29 18:38:39 | 9.6 Release: Call for Quotes |
Previous Message | Merlin Moncure | 2016-08-29 17:50:51 | Re: How to retrieve jsonb column through JDBC |