Re: [racket-users] JSON vs. normal Racket for simple serialization to database

2018-12-12 Thread Brian Adkins
In this particular case, the only purpose is saving/loading data to/from a db column. I have plenty of other uses for JSON, so I'm thankful for the Racket JSON library, but I lean toward simplicity when possible. On Wednesday, December 12, 2018 at 10:35:24 AM UTC-5, Jon Zeppieri wrote: > > Postg

Re: [racket-users] JSON vs. normal Racket for simple serialization to database

2018-12-12 Thread Jon Zeppieri
Postgres can index jsonb column data. Also, other languages will have an easier time reading it. If neither of those matter for your case, then no. - Jon On Wed, Dec 12, 2018 at 10:26 AM Brian Adkins wrote: > I have some simple serialization needs. In Ruby, I would always serialize > an object

[racket-users] JSON vs. normal Racket for simple serialization to database

2018-12-12 Thread Brian Adkins
I have some simple serialization needs. In Ruby, I would always serialize an object to JSON and store in a postgres text column. However, w/ Racket, it appears another option is to simply use read/write. Any reason not to use read/write for serialization instead of JSON? -- You received this m