Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
LostEth02885y@SortOfTested Thats probably it-- I'm stringifying JSON-ish text into pure JSON and I'm probably doing something wrong -- However the console logging the string before I parse it to an object is exactly the text i put here ¯\_(ツ)_/¯
-
LostEth02885y@SortOfTested Its technically got a bunch of odd white space, might try an use a RegEx to remove the white space, other than that I gotta use ol' reliable...
-
LostEth02885yHeres a fucking development: Taking the text that is logged by console.log(args) and parsing it parses correctly. JSON.parse(args) does not.
(・_・) -
Im pretty sure that all dictionary objects are type Object in JS... maybe the console.log isn't smart enough to iterate through it? Doesn't make sense but then again nothing in JS does...
-
LostEth02885y@PrivateGER ended up being a bug later on in my code. I’m mad that I missed it, it was a .toString()
Related Rants
Can somebody please explain to me how in the fuck does :
{
"src" : "./template.html",
"format" : "plain",
"input" : {
"noun" : "World"
},
"replace" : "templateExampleSkeleton"
}
Result in:
format: "plain"
input: "[object Object]"
replace: "templateExampleSkeleton"
src: "./template.html"
When put through JSON.parse()???
question
ts
js