add browse.json as an alternative view of the browse data
[vlc.git] / share / lua / http / requests / browse.json
blobda9fc9ac3a6697ca54fa1401099dd1915b9df196
1 <?vlc --[[
2 vim:syntax=lua
3 <!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
4 <  status.xml: VLC media player web interface
5 <  this should mirror the content and function of status.json
6 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
7 <  Copyright (C) 2005-2009 the VideoLAN team
8 <  $Id$
10 <  Authors: Rob Jonson <rob -at- hobbyistsoftware -dot- com>
12 <  This program is free software; you can redistribute it and/or modify
13 <  it under the terms of the GNU General Public License as published by
14 <  the Free Software Foundation; either version 2 of the License, or
15 <  (at your option) any later version.
17 <  This program is distributed in the hope that it will be useful,
18 <  but WITHOUT ANY WARRANTY; without even the implied warranty of
19 <  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 <  GNU General Public License for more details.
22 <  You should have received a copy of the GNU General Public License
23 <  along with this program; if not, write to the Free Software
24 <  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
26 ]]?>
27 <?vlc
29 --package.loaded.httprequests = nil --uncomment to debug changes
30 require "httprequests"
32 httprequests.processcommands()
34 local browseTable=httprequests.getbrowsetable()
36 print('{')
37 httprequests.printTableAsJson(browseTable,0)
38 print('}')