JSON parser doesn;t work within freeswitch
Hello, strange thing found. I fetch JSON object with curl, then parse it. After parsing JSON, although it seems ok, I do not have access to the object. First I tried with lua, then with v8 javascript. Have the same result. When I do so with simple script with nodeJS everything is ok. Could you tell me, if Freeswitch uses some libraries for parcing JSON or any ideas? JSON and code was checked thousand times and also with tcpdump. Thank you -- Kamil Nigmatullin Tel: 77272323748 mob: 7 (707) 2517003 Skype: kamil.nigmatullin
FreeSWITCH has internal C based json parser but nothing from an external perspective. If you are writing a C function then you can use switch_json.c/h If you have the json as text you probably want to use some parser for whatever language you are using and feed it the text. On Mon, Nov 30, 2015 at 9:51 AM, Kamil Nigmatullin < kamil.nigmatullin@gmail.com> wrote:
Hello, strange thing found. I fetch JSON object with curl, then parse it. After parsing JSON, although it seems ok, I do not have access to the object. First I tried with lua, then with v8 javascript. Have the same result. When I do so with simple script with nodeJS everything is ok. Could you tell me, if Freeswitch uses some libraries for parcing JSON or any ideas?
JSON and code was checked thousand times and also with tcpdump.
Thank you
-- Kamil Nigmatullin Tel: 77272323748 mob: 7 (707) 2517003 Skype: kamil.nigmatullin
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬ ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>* ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900 https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA
participants (2)
-
Anthony Minessale
-
Kamil Nigmatullin