You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will require a rewrite of dperuser.js. If I continue down the path that I'm going, the code is going to end up horribly cluttering the user directory at some point, and I really don't want that, or relying on a sub-directory (though that may become necessary). At this point, adding these JSON per-user records instead will take care of the data handling for multiple issues:
Issue zap room #17 -- as far as saving what rooms the user is subscribed to (I'm deciding against going with setting Synchronet's default message scan; we're just gonna keep things separated for reasons that I'll go into later)
More on this later.
The text was updated successfully, but these errors were encountered:
09:17 < khelair> If not I suppose I'll have to do some more google searching on
how to read it in and parse it up
09:17 < khelair> oh
09:17 < khelair> got a pointer to docs at all?
09:17 < larry_lagomorph> JSON.parse(obj)
09:17 < khelair> well that was tough. heh
09:17 < echicken> JSON.parse(str); JSON.stringify(obj);
09:17 < khelair> does it just create variables in the current scope, then?
09:17 < echicken> it returns a variable
09:17 < khelair> er arrays or objects
09:18 < larry_lagomorph> if you had a var...
09:18 < khelair> yeah
09:18 < khelair> I know... Just undercaffinated ;)
09:18 < khelair> thanks you guys
09:18 < larry_lagomorph> var strObj =
"{name:"test_object",somethingelse:"poop"}"
09:19 < larry_lagomorph> var obj = JSON.parse(strObject);
09:19 < khelair> roger that
09:19 < larry_lagomorph> console.log(obj.name) //test_object
Interestingly enough, there was a bug in trying to utilize File.readln(), due to the fact that it only slurps in up to 512 characters by default. wtF-f-f Anyway, I'm going to keep it all one JSON string to parse, since it's already organized as such that way, as per echicken's suggestion, and then just use File.read() or File.readAll() (not really familiar on the differences just yet).
This will require a rewrite of dperuser.js. If I continue down the path that I'm going, the code is going to end up horribly cluttering the user directory at some point, and I really don't want that, or relying on a sub-directory (though that may become necessary). At this point, adding these JSON per-user records instead will take care of the data handling for multiple issues:
More on this later.
The text was updated successfully, but these errors were encountered: