There's Way More to JSON.Stringify Than You Think

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 พ.ย. 2024

ความคิดเห็น • 19

  • @luciusrex
    @luciusrex หลายเดือนก่อน +2

    Dom I've been following you since you started! Love your work! I'd love it if you were to do a javascript crash course for those learning typescript! And even more than that, videos on typescript? Thank you for what you do!!

    • @dcode-software
      @dcode-software  หลายเดือนก่อน +1

      It's not off the cards. Maybe. Thanks for sticking around!

    • @luciusrex
      @luciusrex หลายเดือนก่อน

      @@dcode-software thank you!! I'll still watch your videos but I keep trying to get your tips to work with ts (once I tried typed programming, C#, its so hard to go back to vanilla js - started to learn js with your videos actually!). These days, I make my apps in both c# (cli and winforms) and now very recently, ts + electron, would love to use your videos as reference for my projects!
      Edit: typescipt is pretty popular anyhow, I'm sure there's an audience for it!

  • @marimuthur9456
    @marimuthur9456 หลายเดือนก่อน

    Awesome explanation still I didn't know this after watching your video only I know this tricks and methods we have in json thanks a lot bro keep rocking🎉😊

  • @MyDpop
    @MyDpop หลายเดือนก่อน

    thanks for explaining 👍

  • @memeflixnchill
    @memeflixnchill หลายเดือนก่อน +2

    I think I am gonna stick to usual filter() function for filtering the data and use null as second argument.
    That way, if any other developer would look at my code, they might not get confused.

  • @offgridvince
    @offgridvince หลายเดือนก่อน +2

    Thinking of a new project to create to implement this... 😂😂😂

  • @m12652
    @m12652 หลายเดือนก่อน +2

    Doesn't console.log already present json nicely formatted without having to stringify it...? It does in chrome.

    • @m12652
      @m12652 หลายเดือนก่อน +1

      Excellent video by the way...

    • @memeflixnchill
      @memeflixnchill หลายเดือนก่อน +1

      Not the strigified JSON, because then, its not JSON object anymore. It is a string.
      He is doing console log, just to demonstrate the output for us.
      Also, in real Live projects, we don't usually use stringify for console logging, we use it to send API response or store the JSON content in a file.
      Although we use stringify for console logging, if our program is modifying the JSON variable on the go, then normal console log won't show previous version of JSON, it only shows most current version of that JSON variable, in that case, we use stringify to console log to see all version of JSON variable.

    • @dcode-software
      @dcode-software  หลายเดือนก่อน

      Yeah but we want to use JSON stringify so we can send the data to other things like API calls/local storage etc.
      Not using it purely to log to the console

  • @thedelanyo
    @thedelanyo หลายเดือนก่อน

    I think JSON.stringify should allow for compression, and parse should uncompress all by providing a fourth argument

  • @theyayaa
    @theyayaa หลายเดือนก่อน

    time to spice up next production deployment

  • @suelingsusu1339
    @suelingsusu1339 หลายเดือนก่อน +1

    👌👍💪👏👏👏👏🙏🙏🙏🙏🖖🖖🖖🖖🖖🖖🌹🌹🌹🌹

  • @sliver3927
    @sliver3927 หลายเดือนก่อน

    your channel is really hard on the search result bro idk why

    • @dcode-software
      @dcode-software  หลายเดือนก่อน

      What do you mean?

    • @sliver3927
      @sliver3927 หลายเดือนก่อน

      @@dcode-software last week, I was looking for your channel and the search result is not showing your videos or channel. Even though I've watched several of your videos already. and I was sure I type "dcode" correctly