Json Convert To and From Query String with jquery?
Posted
by acidzombie24
on Stack Overflow
See other posts from Stack Overflow
or by acidzombie24
Published on 2010-05-31T10:56:16Z
Indexed on
2010/05/31
11:12 UTC
Read the original article
Hit count: 431
I have a string like a=6&id=99
(i might store it in html as 'a=6&id=99' however thats not what js will see). I would like to convert that string into an object so i can do func(o.a); or o.id=44; How do i do that?
Part 2: How do i convert that object back to a query string? it would probably be trivial code that i can write.
© Stack Overflow or respective owner