Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
infinite JSON
#6
(Feb-18-2018, 03:04 AM)Larz60+ Wrote: fugly!

why mess with such an elegant package.
You're thinking the json package is flawed, I suggest that perhaps your thinking if flawed.

i'm not suggesting that, at all.

it just doesn't have methods for continuous streams of JSON. it only has methods for blocks of JSON, which have an end point. this is generally what you get in a file.

i'm just saying that the JSON library in Python doesn't have the interface (and almost certainly the underlying logic) for continuous stream JSON. for other kinds of JSON i would use what comes in Python, have used it, and have had no troubles with it.

XML has similar issues. processing continuous/infinite streams has quite different issues than processing a data block.

(Feb-18-2018, 03:33 AM)snippsat Wrote: ijson, NAYA

these do look interesting. both have an iterative interface, which seems to be the most sensible.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
infinite JSON - by Skaperen - Feb-17-2018, 08:27 AM
RE: infinite JSON - by DeaD_EyE - Feb-17-2018, 04:57 PM
RE: infinite JSON - by Skaperen - Feb-18-2018, 02:37 AM
RE: infinite JSON - by Larz60+ - Feb-18-2018, 03:04 AM
RE: infinite JSON - by Skaperen - Feb-18-2018, 04:05 AM
RE: infinite JSON - by snippsat - Feb-18-2018, 03:33 AM
RE: infinite JSON - by Larz60+ - Feb-18-2018, 07:57 AM
RE: infinite JSON - by Skaperen - Feb-19-2018, 07:14 AM
RE: infinite JSON - by Larz60+ - Feb-19-2018, 11:31 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020