Hi,
we currently working with viewState and are wondering, why the output of the viewstate is non valid json. The RFC about json or a newer version from march 2014 also defines that the keys should be encapsulated by quotes. This is also stated in multiple posts on stackoverflow (e.g. here). Also in known styleguides the json key should be set with quotes Google.
There are multiple sources, which all of them references valid json has surrounding quotes
http://www.json.org/js.html
https://docs.python.org/2/library/json.html
http://json-lib.sourceforge.net/advanced.html
http://help.convertigo.com/latest/to...heoncalls.html
http://cjihrig.com/blog/json-overview/
Since the viewstate is returned as string and not as an object, i think the answer should be valid json.
we currently working with viewState and are wondering, why the output of the viewstate is non valid json. The RFC about json or a newer version from march 2014 also defines that the keys should be encapsulated by quotes. This is also stated in multiple posts on stackoverflow (e.g. here). Also in known styleguides the json key should be set with quotes Google.
There are multiple sources, which all of them references valid json has surrounding quotes
http://www.json.org/js.html
https://docs.python.org/2/library/json.html
http://json-lib.sourceforge.net/advanced.html
http://help.convertigo.com/latest/to...heoncalls.html
http://cjihrig.com/blog/json-overview/
Since the viewstate is returned as string and not as an object, i think the answer should be valid json.
Comment