Thanks for watching! 👉 Source code and related post: openjavascript.info/2022/10/10/how-to-create-and-decode-a-query-string-in-javascript/
@WillJonesUK7 ай бұрын
Nice video. There is a handy library called Rison that you can use to compact the query string and (if necessary) get round URL length restrictions. It is a bit like the stringify/parse process you showed, but can reduce the number of characters by quite a lot..
@trungkienluongnguyen337810 ай бұрын
this 's what i need for my projects !!! so hard to find a good and right video like this in this time !😅. Thank dude so much !
@umararsal Жыл бұрын
this was so helpful . thanks a lot. i was confused in one of few things and this video cleared the ambiguity.
@neatelf99132 жыл бұрын
Thanks for uploading. This is what I'm searching for.
@OpenJavaScript2 жыл бұрын
Great, glad to hear it!
@valdiviaRicardo20032 жыл бұрын
This is such an amazing thing dude. I love it. I'm working in a school project and I really need this, thanks!
@OpenJavaScript2 жыл бұрын
Thanks for watching and glad you found it useful for your project!
@rafcon91412 жыл бұрын
Loved this video. Thank you. You explained it great!
@OpenJavaScript2 жыл бұрын
That's great, thanks for watching!
@brayangarcia2857 Жыл бұрын
good job
@loranetwork Жыл бұрын
i have this error can you guide me please? Uncaught SyntaxError: "undefined" is not valid JSON at JSON.parse ()
@OpenJavaScript Жыл бұрын
This error looks like it's saying that you are trying to call JSON.parse(), passing in a value that hasn't been defined yet. The problem probably lies somewhere in your previous code. I can't tell without seeing your code, but you should take a look at the related blog post for this video, because I posted working examples there: openjavascript.info/2022/10/10/how-to-create-and-decode-a-query-string-in-javascript/
@anhtuanle4991 Жыл бұрын
Can u explain different useSearchParams and URLsearchparams ? I think both same working .
@OpenJavaScript Жыл бұрын
Both are built with the same purpose in mind (interpret and work with a query string). The difference is that URLsearchparams is vanilla JS whereas useSearchParams is a React hook that you can call to work with a state value in your app.
@anhtuanle4991 Жыл бұрын
@@OpenJavaScript oke sir tks u so much. i trying use both, but i think use hooks better when use react