Wild media server (UPnP, DLNA, HTTP)
http://wildmediaserver.com/forum/

Script Guide
http://wildmediaserver.com/forum/viewtopic.php?f=19&t=851
Page 2 of 2

Author:  S@gittarius [ Thu Jan 17, 2013 9:16 pm ]
Post subject:  Re: Script Guide

Hi Eugene,
Could you please provide some help to parse a JSON string into an object.
I did a lot of testing in WMS using JScript as programing language but without success.
How to make the following working?

Code:
var o, s = '{"p1":"test1", "p2":"test2"}';
     o = JSON.parse(s);
     showmessage(o.p2)
Also something like
Code:
o = {};
keeps on giving 'Expression expected' error.
Regards!

Page 2 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/