From: "Dave MacFarlane" <driusan@driusan.net>
To: 9front@9front.org
Subject: Re: [9front] str2json and jsonfmt
Date: Thu, 25 Jan 2024 10:39:52 -0500 [thread overview]
Message-ID: <77B60E477DAF70190E4704C02B91AFEA@driusan.net> (raw)
In-Reply-To: <4DA1C0F34E4C619BB89903111841CB1F@felloff.net>
Quoth cinap_lenrek@felloff.net:
> very interesting.
>
> i tried jg but the problem with mangadex json was that
> they had newlines in the values, which where not escaped
> so the grep approach doesnt work so well.
>
> a file-system to parse it might do the trick.
>
> --
> cinap
>
*Not* escaped newlines? You mean their json looks something like:
"{
"foo": "bar
baz"
}"?
That isn't valid JSON and even with a filesystem would (should) fail
when jsonparse() is called on it. (The above example fails with
JSON.parse in both Firefox and Chrome, so if that is what you mean I'm
not sure how they do anything with it..)
next prev parent reply other threads:[~2024-01-25 15:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-25 5:52 Xiao-Yong Jin
2024-01-25 8:06 ` cinap_lenrek
2024-01-25 8:57 ` phil9
2024-01-25 9:17 ` chris
2024-01-25 14:03 ` Alex Musolino
2024-01-25 13:42 ` Dave MacFarlane
2024-01-25 14:57 ` cinap_lenrek
2024-01-25 15:39 ` Dave MacFarlane [this message]
2024-01-25 16:16 ` Steve simon
2024-01-26 9:34 ` umbraticus
2024-01-25 14:19 ` hiro
2024-01-26 14:53 ` ori
2024-01-26 17:28 ` Steve Simon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=77B60E477DAF70190E4704C02B91AFEA@driusan.net \
--to=driusan@driusan.net \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).