all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Can the json reader be a bit more lenient?
@ 2019-07-31 11:52 ndame
  2019-08-03 16:14 ` Alex Kost
  2019-08-03 18:47 ` Yuri Khan
  0 siblings, 2 replies; 3+ messages in thread
From: ndame @ 2019-07-31 11:52 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Lately I've been using emacs for some text data processing, and the
input is json sometimes. The problem is the json often comes like
this:

  [{'time1: '8:00', 'time2': '13:00', ...

and the emacs reader chokes on it saying

  doesn't start with "!

Now I know the json standard says attribute names should be double quoted,
but can it be somehow persuaded to accept single quotes instead?

It would be great to have an option for this when I know the data is
correct, only it uses single quotes instead of doubles.


 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-03 18:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-31 11:52 Can the json reader be a bit more lenient? ndame
2019-08-03 16:14 ` Alex Kost
2019-08-03 18:47 ` Yuri Khan

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.