In [1]:
import os, sys

In [2]:
os.getcwd()


Out[2]:
'/home/topolo/PropD/servetheloop'

In [3]:
os.listdir('../react-groundstation/')


Out[3]:
['.babelrc',
 '.vscode',
 'config',
 'node_modules',
 '.git',
 'README.md',
 'public',
 'pod',
 'gsFileTree.txt',
 'debug.bat',
 'package.json',
 'server',
 'postcss.config.js',
 '.gitignore',
 '.editorconfig',
 'sh.exe.stackdump',
 '.eslintrc.json',
 'buildAndRun.bat',
 'src',
 'installStartup.bat',
 'logs',
 'nodemon.json',
 'startup.bat',
 'test']

In [10]:
os.walk('../react-groundstation/')
for subdir_tuple in next(os.walk('../react-groundstation/')):
    print( subdir_tuple )


../react-groundstation/
['.vscode', 'config', 'node_modules', '.git', 'public', 'pod', 'server', 'src', 'logs', 'test']
['.babelrc', 'README.md', 'gsFileTree.txt', 'debug.bat', 'package.json', 'postcss.config.js', '.gitignore', '.editorconfig', 'sh.exe.stackdump', '.eslintrc.json', 'buildAndRun.bat', 'installStartup.bat', 'nodemon.json', 'startup.bat']

nodemon.json - mode, verbose is True and directs to config (**config**) package.json - dependencies, some look like they're from npm install


In [11]:
import json
from pprint import pprint

In [59]:
import __jsonnet


---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-59-41daaa7d33fd> in <module>()
----> 1 import __jsonnet

ImportError: No module named __jsonnet

In [21]:
import re

config/

commConfig.js - port communciation configurations for hostIP, hostName,
faultFlagDefinitions.js - all the various kinds of faults


In [15]:
config_path = '../react-groundstation/config/'

In [12]:
for subdir_tuple in os.walk('../react-groundstation/config/'):
    print(subdir_tuple)


('../react-groundstation/config/', ['webpack'], ['packetDefinitions.js', 'commConfig.js', 'faultFlagDefinitions.js', 'tempSensorLocations.js'])
('../react-groundstation/config/webpack', [], ['webpack.config.js', 'env.js'])

In [17]:
file_tempSensorLocations=open(config_path+"tempSensorLocations.js",'r') 
#json_raw_tempSensorLocations = json.load(file_tempSensorLocations)
file_tempSensorLocations.close()
rawstr=tempSensorLocations=file_tempSensorLocations.read()

In [ ]:
#rawstr = re.sub(r'\\\n', '', input_str)
#rawstr = re.sub(r'//.*\n', '\n', input_str)

In [57]:
rawstr.replace('\n','').split("=")[1].strip()[:-1].replace(' ','').split("tempSensorLocations") ;

In [53]:
# remove new line, remove first assignment, remove semicolon at end, remove all white space, 
# add quotation marks around tempSensorLocations
'"tempSensorLocations"'.join( 
    rawstr.replace('\n','').split("=")[1].strip()[:-1].replace(' ','').split("tempSensorLocations") );

In [51]:
'{"tempSensorLocations'+rawstr.replace('\n','').split("=")[1].strip()[:-1].replace(' ','').split("tempSensorLocations")[1];

In [52]:
json_tempSensorLocations = json.loads( 
   '{"tempSensorLocations'+rawstr.replace('\n','').split("=")[1].strip()[:-1].replace(' ','').split("tempSensorLocations")[1] )


---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-52-f88048ef5d32> in <module>()
      1 json_tempSensorLocations = json.loads( 
----> 2    '{"tempSensorLocations'+rawstr.replace('\n','').split("=")[1].strip()[:-1].replace(' ','').split("tempSensorLocations")[1] )

/home/topolo/Public/anaconda2/lib/python2.7/json/__init__.pyc in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
    337             parse_int is None and parse_float is None and
    338             parse_constant is None and object_pairs_hook is None and not kw):
--> 339         return _default_decoder.decode(s)
    340     if cls is None:
    341         cls = JSONDecoder

/home/topolo/Public/anaconda2/lib/python2.7/json/decoder.pyc in decode(self, s, _w)
    362 
    363         """
--> 364         obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    365         end = _w(s, end).end()
    366         if end != len(s):

/home/topolo/Public/anaconda2/lib/python2.7/json/decoder.pyc in raw_decode(self, s, idx)
    378         """
    379         try:
--> 380             obj, end = self.scan_once(s, idx)
    381         except StopIteration:
    382             raise ValueError("No JSON object could be decoded")

ValueError: Unterminated string starting at: line 1 column 2 (char 1)

In [55]:
rawstr_tempSensorLocations="{'tempSensorLocations':[{'ROMID':'28FF70F7A0160380','Type':'CellTab','Module':'3506'},{'ROMID':'28FF08F4A0160586','Type':'CellTab','Module':'3506'},{'ROMID':'28FF0CA1A016031D','Type':'CellTab','Module':'3506'},{'ROMID':'28FF9CBAA0160306','Type':'CellTab','Module':'3506'},{'ROMID':'28FF5CB8A01604A0','Type':'CellTab','Module':'3506'},{'ROMID':'28FF3C8BA016052F','Type':'PCM','Module':'3506'},{'ROMID':'28FFCA84A01604D1','Type':'PCM','Module':'3506'},{'ROMID':'28FFFA8DA0160598','Type':'CellTab','Module':'3506'},{'ROMID':'28FFC6C8A0160402','Type':'CellTab','Module':'3506'},{'ROMID':'28FF36D9A016054D','Type':'CellTab','Module':'3506'},{'ROMID':'28FFAE7FA01603B9','Type':'CellTab','Module':'3506'},{'ROMID':'28FFEED0A0160363','Type':'CellTab','Module':'3506'},{'ROMID':'28FF3DBCA01603F1','Type':'CellTab','Module':'3506'},{'ROMID':'28FF636B82160419','Type':'PCM','Module':'3506'},{'ROMID':'28FF17A8A016055F','Type':'CellTab','Module':'3506'},{'ROMID':'28FF6087A01604D7','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF90B8A0160320','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FFF08AA01604FD','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF78DAA016058E','Type':'PCM','Module':'DBB9'},{'ROMID':'28FFDC66A016047F','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF899FA0160359','Type':'PCM','Module':'DBB9'},{'ROMID':'28FF39C4A01604D9','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF959DA0160303','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF5D84A0160569','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FFE3F4A016052C','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF33C8A01603F5','Type':'PCM','Module':'DBB9'},{'ROMID':'28FF738BA01605A9','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FFA7BAA01603F2','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF37D7A0160595','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FFAF67A01604D3','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF80B9A01603D3','Type':'CellTab','Module':'77EB'},{'ROMID':'28FF90E8A01603F8','Type':'CellTab','Module':'77EB'},{'ROMID':'28FF86BBA01604CB','Type':'PCM','Module':'77EB'},{'ROMID':'28FF7ECAA01603F7','Type':'CellTab','Module':'77EB'},{'ROMID':'28FFB98EA01605B7','Type':'CellTab','Module':'77EB'},{'ROMID':'28FFADA5A01603ED','Type':'CellTab','Module':'77EB'},{'ROMID':'28FFDDE1A01605B3','Type':'CellTab','Module':'77EB'},{'ROMID':'28FF838DA0160506','Type':'CellTab','Module':'77EB'},{'ROMID':'28FFC36BA01604F1','Type':'CellTab','Module':'77EB'},{'ROMID':'28FF4BCBA01604AD','Type':'CellTab','Module':'77EB'},{'ROMID':'28FFAB64A0160444','Type':'CellTab','Module':'77EB'},{'ROMID':'28FF1BC6A01604A5','Type':'CellTab','Module':'77EB'},{'ROMID':'28FF07B9A01604CA','Type':'PCM','Module':'77EB'},{'ROMID':'28FF0F89A01605E2','Type':'CellTab','Module':'77EB'},{'ROMID':'28FFAF8AA0160559','Type':'PCM','Module':'77EB'},{'ROMID':'28FF0087A0160345','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FF48BDA0160442','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FF58BAA01604B8','Type':'PCM','Module':'2A3C'},{'ROMID':'28FF54E6A01603D0','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FFF2D4A01605ED','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FFF6DAA01605E7','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FF6EF5A0160584','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FFF9D6A016059A','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FF05BCA016034B','Type':'PCM','Module':'2A3C'},{'ROMID':'28FF95A8A0160517','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FFC3DFA0160530','Type':'PCM','Module':'2A3C'},{'ROMID':'28FFA3D4A01605B5','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FF93A9A01603D9','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FF3B84A01604BA','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FFCF96A016043C','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FF90FBA0160348','Type':'CellTab','Module':'E357'},{'ROMID':'28FFF490A01604C1','Type':'PCM','Module':'E357'},{'ROMID':'28FF3C85A0160464','Type':'CellTab','Module':'E357'},{'ROMID':'28FF3A96A0160448','Type':'CellTab','Module':'E357'},{'ROMID':'28FFFAB8A016038C','Type':'CellTab','Module':'E357'},{'ROMID':'28FF56F4A01605B1','Type':'PCM','Module':'E357'},{'ROMID':'28FF36DDA0160543','Type':'PCM','Module':'E357'},{'ROMID':'28FF76A1A01603CD','Type':'CellTab','Module':'E357'},{'ROMID':'28FF76F1A01605C8','Type':'CellTab','Module':'E357'},{'ROMID':'28FF76C7A0160354','Type':'CellTab','Module':'E357'},{'ROMID':'28FF7697A016040F','Type':'CellTab','Module':'E357'},{'ROMID':'28FF01F0A016057B','Type':'CellTab','Module':'E357'},{'ROMID':'28FF29B7A0160485','Type':'CellTab','Module':'E357'},{'ROMID':'28FF25BFA01604B8','Type':'CellTab','Module':'E357'},{'ROMID':'28FFCFD7A016050D','Type':'CellTab','Module':'E357'},{'ROMID':'28FF008EA016050B','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF30F1A01605BD','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF18B5A01604CB','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF14BBA01604FF','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF96BEA01603B5','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FFB6F5A0160339','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF59D0A016037D','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FFD58BA0160506','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FFFDE6A0160310','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF13EFA0160526','Type':'PCM','Module':'0E1C'},{'ROMID':'28FF8BE6A01603E1','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF4BCAA0160422','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FFBB83A01604F7','Type':'PCM','Module':'0E1C'},{'ROMID':'28FF5796A0160336','Type':'PCM','Module':'0E1C'},{'ROMID':'28FFEFA4A0160308','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF90B9A016042C','Type':'CellTab','Module':'98F6'},{'ROMID':'28FF0486A0160456','Type':'CellTab','Module':'98F6'},{'ROMID':'28FF14DBA0160531','Type':'PCM','Module':'98F6'},{'ROMID':'28FF8C6DA016047E','Type':'CellTab','Module':'98F6'},{'ROMID':'28FF1C85A01605C2','Type':'CellTab','Module':'98F6'},{'ROMID':'28FFDCCBA016044B','Type':'CellTab','Module':'98F6'},{'ROMID':'28FFEEA9A0160585','Type':'CellTab','Module':'98F6'},{'ROMID':'28FF81E1A0160507','Type':'CellTab','Module':'98F6'},{'ROMID':'28FFA1E5A01605F1','Type':'CellTab','Module':'98F6'},{'ROMID':'28FFB993A016044C','Type':'CellTab','Module':'98F6'},{'ROMID':'28FF75B6A01604BE','Type':'CellTab','Module':'98F6'},{'ROMID':'28FF3DC8A01604D4','Type':'PCM','Module':'98F6'},{'ROMID':'28FF4365A016042F','Type':'PCM','Module':'98F6'},{'ROMID':'28FF67AEA01603E6','Type':'CellTab','Module':'98F6'},{'ROMID':'28FF17B6A016042C','Type':'CellTab','Module':'98F6'},{'ROMID':'28FFD085A016049F','Type':'CellTab','Module':'15FD'},{'ROMID':'28FFF09FA01603C7','Type':'CellTab','Module':'15FD'},{'ROMID':'28FFCCB6A0160402','Type':'PCM','Module':'15FD'},{'ROMID':'28FF1C82A0160544','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF6689A0160500','Type':'CellTab','Module':'15FD'},{'ROMID':'28FFE6C6A01604EF','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF61F0A016056A','Type':'PCM','Module':'15FD'},{'ROMID':'28FFB1CBA01604B6','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF19A9A0160572','Type':'CellTab','Module':'15FD'},{'ROMID':'28FFD595A0160475','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF43A2A0160313','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF07C4A01604FF','Type':'PCM','Module':'15FD'},{'ROMID':'28FF97BCA01604FC','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF2FE7A0160342','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF6FE3A0160578','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF087DA0160492','Type':'CellTab','Module':'C838'},{'ROMID':'28FFE874A0160358','Type':'CellTab','Module':'C838'},{'ROMID':'28FFE4DCA0160511','Type':'CellTab','Module':'C838'},{'ROMID':'28FF5C6AA01604A6','Type':'CellTab','Module':'C838'},{'ROMID':'28FF12BAA016036F','Type':'CellTab','Module':'C838'},{'ROMID':'28FFAA8BA0160504','Type':'CellTab','Module':'C838'},{'ROMID':'28FFAAF7A0160363','Type':'CellTab','Module':'C838'},{'ROMID':'28FFD1EFA0160587','Type':'PCM','Module':'C838'},{'ROMID':'28FF658DA0160540','Type':'CellTab','Module':'C838'},{'ROMID':'28FFC369A01604F6','Type':'PCM','Module':'C838'},{'ROMID':'28FFABF1A01603A7','Type':'CellTab','Module':'C838'},{'ROMID':'28FF47B6A01604B9','Type':'CellTab','Module':'C838'},{'ROMID':'28FFB7F1A0160527','Type':'CellTab','Module':'C838'},{'ROMID':'28FF8FF4A016051C','Type':'CellTab','Module':'C838'},{'ROMID':'28FF4FBCA016031F','Type':'PCM','Module':'C838'},{'ROMID':'28FFB0E5A0160540','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FF98A0A016033A','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FF428DA01605E9','Type':'PCM','Module':'F2D2'},{'ROMID':'28FF62A2A0160326','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FF6AE8A01603E3','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FFD693A01603B1','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FFF689A01605B7','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FFB967A0160433','Type':'PCM','Module':'F2D2'},{'ROMID':'28FFC3BDA016037A','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FFD36BA016048D','Type':'PCM','Module':'F2D2'},{'ROMID':'28FF8B89A01603EB','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FF2B87A0160510','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FFD7CCA016033E','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FF7787A01604FA','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FF2F93A0160467','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FF4067A0160466','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF609DA0160377','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF54DCA016055E','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF4CBAA0160358','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF5CF1A016058D','Type':'CellTab','Module':'7D27'},{'ROMID':'28FFC29BA01603CE','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF22E5A0160574','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF86DCA0160583','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF6694A01604FB','Type':'PCM','Module':'7D27'},{'ROMID':'28FF9EB7A016049B','Type':'CellTab','Module':'7D27'},{'ROMID':'28FFA987A0160406','Type':'CellTab','Module':'7D27'},{'ROMID':'28FFDDCBA0160486','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF13CCA0160480','Type':'PCM','Module':'7D27'},{'ROMID':'28FFE7B4A016048D','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF0FCFA016050B','Type':'PCM','Module':'7D27'},{'ROMID':'28FFC0F4A016059A','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF0CB6A0160420','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF2C7DA0160475','Type':'PCM','Module':'A58A'},{'ROMID':'28FF4AB8A01603C3','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF3E9EA01603C8','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF698CA01604B0','Type':'PCM','Module':'A58A'},{'ROMID':'28FF59B6A0160467','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF39F0A01605C1','Type':'CellTab','Module':'A58A'},{'ROMID':'28FFD5E7A0160359','Type':'CellTab','Module':'A58A'},{'ROMID':'28FFF583A01604BC','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF83D1A0160311','Type':'PCM','Module':'A58A'},{'ROMID':'28FF6BF8A0160316','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF278BA0160523','Type':'CellTab','Module':'A58A'},{'ROMID':'28FFB7DEA0160310','Type':'CellTab','Module':'A58A'},{'ROMID':'28FFAF89A016048F','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF80D1A016035F','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF1493A0160493','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF42F2A01605DB','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF328BA016058D','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF72CAA0160455','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FFDAF6A0160381','Type':'PCM','Module':'AC2C'},{'ROMID':'28FF56E0A016035A','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF36E7A01603CD','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FFAEC4A016043F','Type':'PCM','Module':'AC2C'},{'ROMID':'28FF41DBA0160576','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF996EA0160458','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF0DF0A016055A','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FFDBE1A016052F','Type':'PCM','Module':'AC2C'},{'ROMID':'28FF8FA3A016039F','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF6F64A0160479','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF20B8A01604EC','Type':'CellTab','Module':'2072'},{'ROMID':'28FFB08CA0160543','Type':'CellTab','Module':'2072'},{'ROMID':'28FF18C0A01604E2','Type':'CellTab','Module':'2072'},{'ROMID':'28FF14E7A01603B6','Type':'PCM','Module':'2072'},{'ROMID':'28FF228BA01605F1','Type':'CellTab','Module':'2072'},{'ROMID':'28FFAE65A0160419','Type':'CellTab','Module':'2072'},{'ROMID':'28FF89E2A01605B1','Type':'CellTab','Module':'2072'},{'ROMID':'28FFE995A0160353','Type':'CellTab','Module':'2072'},{'ROMID':'28FF196AA016049D','Type':'PCM','Module':'2072'},{'ROMID':'28FFD5D2A016054D','Type':'CellTab','Module':'2072'},{'ROMID':'28FFCB64A0160455','Type':'CellTab','Module':'2072'},{'ROMID':'28FF9BDBA0160595','Type':'PCM','Module':'2072'},{'ROMID':'28FF07E1A0160550','Type':'CellTab','Module':'2072'},{'ROMID':'28FFA797A016031F','Type':'CellTab','Module':'2072'},{'ROMID':'28FFBFCBA0160414','Type':'CellTab','Module':'2072'},{'ROMID':'28FF90C8A0160388','Type':'CellTab','Module':'24AF'},{'ROMID':'28FF08BEA0160423','Type':'CellTab','Module':'24AF'},{'ROMID':'28FF42CEA016035C','Type':'CellTab','Module':'24AF'},{'ROMID':'28FF8AF8A0160301','Type':'CellTab','Module':'24AF'},{'ROMID':'28FFE6CAA016037E','Type':'CellTab','Module':'24AF'},{'ROMID':'28FFCE88A01604DC','Type':'PCM','Module':'24AF'},{'ROMID':'28FF51B8A01603CF','Type':'CellTab','Module':'24AF'},{'ROMID':'28FF6994A0160494','Type':'CellTab','Module':'24AF'},{'ROMID':'28FFF9F0A01605E3','Type':'CellTab','Module':'24AF'},{'ROMID':'28FFBD9CA01604C9','Type':'CellTab','Module':'24AF'},{'ROMID':'28FFE365A016041C','Type':'PCM','Module':'24AF'},{'ROMID':'28FF8BEBA016037C','Type':'CellTab','Module':'24AF'},{'ROMID':'28FF6B8EA016056A','Type':'CellTab','Module':'24AF'},{'ROMID':'28FFFBDAA016050B','Type':'PCM','Module':'24AF'},{'ROMID':'28FFFB8BA016055C','Type':'CellTab','Module':'24AF'},{'ROMID':'28FF187EA0160466','Type':'PCM','Module':'9D01'},{'ROMID':'28FFCCB8A0160417','Type':'CellTab','Module':'9D01'},{'ROMID':'28FF2A95A016033F','Type':'CellTab','Module':'9D01'},{'ROMID':'28FF21ACA0160394','Type':'CellTab','Module':'9D01'},{'ROMID':'28FFD1D2A0160552','Type':'CellTab','Module':'9D01'},{'ROMID':'28FFA9D8A016051A','Type':'CellTab','Module':'9D01'},{'ROMID':'28FFB9BBA01603A3','Type':'CellTab','Module':'9D01'},{'ROMID':'28FF7987A0160458','Type':'PCM','Module':'9D01'},{'ROMID':'28FF3D64A016046F','Type':'CellTab','Module':'9D01'},{'ROMID':'28FF63F5A0160568','Type':'CellTab','Module':'9D01'},{'ROMID':'28FF1BBAA016039C','Type':'CellTab','Module':'9D01'},{'ROMID':'28FF8796A01604EB','Type':'CellTab','Module':'9D01'},{'ROMID':'28FFA7E1A0160563','Type':'CellTab','Module':'9D01'},{'ROMID':'28FFCFE5A0160542','Type':'PCM','Module':'9D01'},{'ROMID':'28FF9F88A01605DA','Type':'CellTab','Module':'9D01'},{'ROMID':'28FFF8DFA01605C4','Type':'CellTab','Module':'DC45'},{'ROMID':'28FF9C97A0160468','Type':'CellTab','Module':'DC45'},{'ROMID':'28FF2284A016056B','Type':'CellTab','Module':'DC45'},{'ROMID':'28FFB6D7A0160593','Type':'PCM','Module':'DC45'},{'ROMID':'28FF5EB3A01604B7','Type':'CellTab','Module':'DC45'},{'ROMID':'28FFA1E4A016057E','Type':'CellTab','Module':'DC45'},{'ROMID':'28FFC5C9A01604C3','Type':'CellTab','Module':'DC45'},{'ROMID':'28FF55DDA016051C','Type':'CellTab','Module':'DC45'},{'ROMID':'28FFADB8A0160348','Type':'CellTab','Module':'DC45'},{'ROMID':'28FF8B93A016044B','Type':'PCM','Module':'DC45'},{'ROMID':'28FF8B73A0160402','Type':'PCM','Module':'DC45'},{'ROMID':'28FFE784A01604C5','Type':'CellTab','Module':'DC45'},{'ROMID':'28FFF7A4A016034A','Type':'CellTab','Module':'DC45'},{'ROMID':'28FFDF8AA0160534','Type':'CellTab','Module':'DC45'},{'ROMID':'28FFBF87A01604E6','Type':'CellTab','Module':'DC45'}]}"

In [56]:
json_tempSensorLocations = json.loads( rawstr_tempSensorLocations)


---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-56-956228dfe786> in <module>()
----> 1 json_tempSensorLocations = json.loads( rawstr_tempSensorLocations)

/home/topolo/Public/anaconda2/lib/python2.7/json/__init__.pyc in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
    337             parse_int is None and parse_float is None and
    338             parse_constant is None and object_pairs_hook is None and not kw):
--> 339         return _default_decoder.decode(s)
    340     if cls is None:
    341         cls = JSONDecoder

/home/topolo/Public/anaconda2/lib/python2.7/json/decoder.pyc in decode(self, s, _w)
    362 
    363         """
--> 364         obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    365         end = _w(s, end).end()
    366         if end != len(s):

/home/topolo/Public/anaconda2/lib/python2.7/json/decoder.pyc in raw_decode(self, s, idx)
    378         """
    379         try:
--> 380             obj, end = self.scan_once(s, idx)
    381         except StopIteration:
    382             raise ValueError("No JSON object could be decoded")

ValueError: Expecting property name: line 1 column 2 (char 1)

Try manually editing the file itself and then feeding it in. Delete JavaScript Object/Variable name, assignment operator (i.e. '=' sign), put quotes around the first attribute, and delete semicolons).


In [72]:
file_tempSensorLocations=open(config_path+"tempSensorLocations.json",'r') 
#json_raw_tempSensorLocations = json.load(file_tempSensorLocations)
rawstr_tempSensorLocations=file_tempSensorLocations.read()
file_tempSensorLocations.close()

In [69]:
rawstr_tempSensorLocations.replace('\n','').replace(' ','')


Out[69]:
"{'tempSensorLocations':[{'ROMID':'28FF70F7A0160380','Type':'CellTab','Module':'3506'},{'ROMID':'28FF08F4A0160586','Type':'CellTab','Module':'3506'},{'ROMID':'28FF0CA1A016031D','Type':'CellTab','Module':'3506'},{'ROMID':'28FF9CBAA0160306','Type':'CellTab','Module':'3506'},{'ROMID':'28FF5CB8A01604A0','Type':'CellTab','Module':'3506'},{'ROMID':'28FF3C8BA016052F','Type':'PCM','Module':'3506'},{'ROMID':'28FFCA84A01604D1','Type':'PCM','Module':'3506'},{'ROMID':'28FFFA8DA0160598','Type':'CellTab','Module':'3506'},{'ROMID':'28FFC6C8A0160402','Type':'CellTab','Module':'3506'},{'ROMID':'28FF36D9A016054D','Type':'CellTab','Module':'3506'},{'ROMID':'28FFAE7FA01603B9','Type':'CellTab','Module':'3506'},{'ROMID':'28FFEED0A0160363','Type':'CellTab','Module':'3506'},{'ROMID':'28FF3DBCA01603F1','Type':'CellTab','Module':'3506'},{'ROMID':'28FF636B82160419','Type':'PCM','Module':'3506'},{'ROMID':'28FF17A8A016055F','Type':'CellTab','Module':'3506'},{'ROMID':'28FF6087A01604D7','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF90B8A0160320','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FFF08AA01604FD','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF78DAA016058E','Type':'PCM','Module':'DBB9'},{'ROMID':'28FFDC66A016047F','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF899FA0160359','Type':'PCM','Module':'DBB9'},{'ROMID':'28FF39C4A01604D9','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF959DA0160303','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF5D84A0160569','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FFE3F4A016052C','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF33C8A01603F5','Type':'PCM','Module':'DBB9'},{'ROMID':'28FF738BA01605A9','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FFA7BAA01603F2','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF37D7A0160595','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FFAF67A01604D3','Type':'CellTab','Module':'DBB9'},{'ROMID':'28FF80B9A01603D3','Type':'CellTab','Module':'77EB'},{'ROMID':'28FF90E8A01603F8','Type':'CellTab','Module':'77EB'},{'ROMID':'28FF86BBA01604CB','Type':'PCM','Module':'77EB'},{'ROMID':'28FF7ECAA01603F7','Type':'CellTab','Module':'77EB'},{'ROMID':'28FFB98EA01605B7','Type':'CellTab','Module':'77EB'},{'ROMID':'28FFADA5A01603ED','Type':'CellTab','Module':'77EB'},{'ROMID':'28FFDDE1A01605B3','Type':'CellTab','Module':'77EB'},{'ROMID':'28FF838DA0160506','Type':'CellTab','Module':'77EB'},{'ROMID':'28FFC36BA01604F1','Type':'CellTab','Module':'77EB'},{'ROMID':'28FF4BCBA01604AD','Type':'CellTab','Module':'77EB'},{'ROMID':'28FFAB64A0160444','Type':'CellTab','Module':'77EB'},{'ROMID':'28FF1BC6A01604A5','Type':'CellTab','Module':'77EB'},{'ROMID':'28FF07B9A01604CA','Type':'PCM','Module':'77EB'},{'ROMID':'28FF0F89A01605E2','Type':'CellTab','Module':'77EB'},{'ROMID':'28FFAF8AA0160559','Type':'PCM','Module':'77EB'},{'ROMID':'28FF0087A0160345','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FF48BDA0160442','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FF58BAA01604B8','Type':'PCM','Module':'2A3C'},{'ROMID':'28FF54E6A01603D0','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FFF2D4A01605ED','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FFF6DAA01605E7','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FF6EF5A0160584','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FFF9D6A016059A','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FF05BCA016034B','Type':'PCM','Module':'2A3C'},{'ROMID':'28FF95A8A0160517','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FFC3DFA0160530','Type':'PCM','Module':'2A3C'},{'ROMID':'28FFA3D4A01605B5','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FF93A9A01603D9','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FF3B84A01604BA','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FFCF96A016043C','Type':'CellTab','Module':'2A3C'},{'ROMID':'28FF90FBA0160348','Type':'CellTab','Module':'E357'},{'ROMID':'28FFF490A01604C1','Type':'PCM','Module':'E357'},{'ROMID':'28FF3C85A0160464','Type':'CellTab','Module':'E357'},{'ROMID':'28FF3A96A0160448','Type':'CellTab','Module':'E357'},{'ROMID':'28FFFAB8A016038C','Type':'CellTab','Module':'E357'},{'ROMID':'28FF56F4A01605B1','Type':'PCM','Module':'E357'},{'ROMID':'28FF36DDA0160543','Type':'PCM','Module':'E357'},{'ROMID':'28FF76A1A01603CD','Type':'CellTab','Module':'E357'},{'ROMID':'28FF76F1A01605C8','Type':'CellTab','Module':'E357'},{'ROMID':'28FF76C7A0160354','Type':'CellTab','Module':'E357'},{'ROMID':'28FF7697A016040F','Type':'CellTab','Module':'E357'},{'ROMID':'28FF01F0A016057B','Type':'CellTab','Module':'E357'},{'ROMID':'28FF29B7A0160485','Type':'CellTab','Module':'E357'},{'ROMID':'28FF25BFA01604B8','Type':'CellTab','Module':'E357'},{'ROMID':'28FFCFD7A016050D','Type':'CellTab','Module':'E357'},{'ROMID':'28FF008EA016050B','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF30F1A01605BD','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF18B5A01604CB','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF14BBA01604FF','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF96BEA01603B5','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FFB6F5A0160339','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF59D0A016037D','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FFD58BA0160506','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FFFDE6A0160310','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF13EFA0160526','Type':'PCM','Module':'0E1C'},{'ROMID':'28FF8BE6A01603E1','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF4BCAA0160422','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FFBB83A01604F7','Type':'PCM','Module':'0E1C'},{'ROMID':'28FF5796A0160336','Type':'PCM','Module':'0E1C'},{'ROMID':'28FFEFA4A0160308','Type':'CellTab','Module':'0E1C'},{'ROMID':'28FF90B9A016042C','Type':'CellTab','Module':'98F6'},{'ROMID':'28FF0486A0160456','Type':'CellTab','Module':'98F6'},{'ROMID':'28FF14DBA0160531','Type':'PCM','Module':'98F6'},{'ROMID':'28FF8C6DA016047E','Type':'CellTab','Module':'98F6'},{'ROMID':'28FF1C85A01605C2','Type':'CellTab','Module':'98F6'},{'ROMID':'28FFDCCBA016044B','Type':'CellTab','Module':'98F6'},{'ROMID':'28FFEEA9A0160585','Type':'CellTab','Module':'98F6'},{'ROMID':'28FF81E1A0160507','Type':'CellTab','Module':'98F6'},{'ROMID':'28FFA1E5A01605F1','Type':'CellTab','Module':'98F6'},{'ROMID':'28FFB993A016044C','Type':'CellTab','Module':'98F6'},{'ROMID':'28FF75B6A01604BE','Type':'CellTab','Module':'98F6'},{'ROMID':'28FF3DC8A01604D4','Type':'PCM','Module':'98F6'},{'ROMID':'28FF4365A016042F','Type':'PCM','Module':'98F6'},{'ROMID':'28FF67AEA01603E6','Type':'CellTab','Module':'98F6'},{'ROMID':'28FF17B6A016042C','Type':'CellTab','Module':'98F6'},{'ROMID':'28FFD085A016049F','Type':'CellTab','Module':'15FD'},{'ROMID':'28FFF09FA01603C7','Type':'CellTab','Module':'15FD'},{'ROMID':'28FFCCB6A0160402','Type':'PCM','Module':'15FD'},{'ROMID':'28FF1C82A0160544','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF6689A0160500','Type':'CellTab','Module':'15FD'},{'ROMID':'28FFE6C6A01604EF','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF61F0A016056A','Type':'PCM','Module':'15FD'},{'ROMID':'28FFB1CBA01604B6','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF19A9A0160572','Type':'CellTab','Module':'15FD'},{'ROMID':'28FFD595A0160475','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF43A2A0160313','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF07C4A01604FF','Type':'PCM','Module':'15FD'},{'ROMID':'28FF97BCA01604FC','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF2FE7A0160342','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF6FE3A0160578','Type':'CellTab','Module':'15FD'},{'ROMID':'28FF087DA0160492','Type':'CellTab','Module':'C838'},{'ROMID':'28FFE874A0160358','Type':'CellTab','Module':'C838'},{'ROMID':'28FFE4DCA0160511','Type':'CellTab','Module':'C838'},{'ROMID':'28FF5C6AA01604A6','Type':'CellTab','Module':'C838'},{'ROMID':'28FF12BAA016036F','Type':'CellTab','Module':'C838'},{'ROMID':'28FFAA8BA0160504','Type':'CellTab','Module':'C838'},{'ROMID':'28FFAAF7A0160363','Type':'CellTab','Module':'C838'},{'ROMID':'28FFD1EFA0160587','Type':'PCM','Module':'C838'},{'ROMID':'28FF658DA0160540','Type':'CellTab','Module':'C838'},{'ROMID':'28FFC369A01604F6','Type':'PCM','Module':'C838'},{'ROMID':'28FFABF1A01603A7','Type':'CellTab','Module':'C838'},{'ROMID':'28FF47B6A01604B9','Type':'CellTab','Module':'C838'},{'ROMID':'28FFB7F1A0160527','Type':'CellTab','Module':'C838'},{'ROMID':'28FF8FF4A016051C','Type':'CellTab','Module':'C838'},{'ROMID':'28FF4FBCA016031F','Type':'PCM','Module':'C838'},{'ROMID':'28FFB0E5A0160540','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FF98A0A016033A','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FF428DA01605E9','Type':'PCM','Module':'F2D2'},{'ROMID':'28FF62A2A0160326','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FF6AE8A01603E3','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FFD693A01603B1','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FFF689A01605B7','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FFB967A0160433','Type':'PCM','Module':'F2D2'},{'ROMID':'28FFC3BDA016037A','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FFD36BA016048D','Type':'PCM','Module':'F2D2'},{'ROMID':'28FF8B89A01603EB','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FF2B87A0160510','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FFD7CCA016033E','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FF7787A01604FA','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FF2F93A0160467','Type':'CellTab','Module':'F2D2'},{'ROMID':'28FF4067A0160466','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF609DA0160377','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF54DCA016055E','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF4CBAA0160358','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF5CF1A016058D','Type':'CellTab','Module':'7D27'},{'ROMID':'28FFC29BA01603CE','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF22E5A0160574','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF86DCA0160583','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF6694A01604FB','Type':'PCM','Module':'7D27'},{'ROMID':'28FF9EB7A016049B','Type':'CellTab','Module':'7D27'},{'ROMID':'28FFA987A0160406','Type':'CellTab','Module':'7D27'},{'ROMID':'28FFDDCBA0160486','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF13CCA0160480','Type':'PCM','Module':'7D27'},{'ROMID':'28FFE7B4A016048D','Type':'CellTab','Module':'7D27'},{'ROMID':'28FF0FCFA016050B','Type':'PCM','Module':'7D27'},{'ROMID':'28FFC0F4A016059A','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF0CB6A0160420','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF2C7DA0160475','Type':'PCM','Module':'A58A'},{'ROMID':'28FF4AB8A01603C3','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF3E9EA01603C8','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF698CA01604B0','Type':'PCM','Module':'A58A'},{'ROMID':'28FF59B6A0160467','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF39F0A01605C1','Type':'CellTab','Module':'A58A'},{'ROMID':'28FFD5E7A0160359','Type':'CellTab','Module':'A58A'},{'ROMID':'28FFF583A01604BC','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF83D1A0160311','Type':'PCM','Module':'A58A'},{'ROMID':'28FF6BF8A0160316','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF278BA0160523','Type':'CellTab','Module':'A58A'},{'ROMID':'28FFB7DEA0160310','Type':'CellTab','Module':'A58A'},{'ROMID':'28FFAF89A016048F','Type':'CellTab','Module':'A58A'},{'ROMID':'28FF80D1A016035F','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF1493A0160493','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF42F2A01605DB','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF328BA016058D','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF72CAA0160455','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FFDAF6A0160381','Type':'PCM','Module':'AC2C'},{'ROMID':'28FF56E0A016035A','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF36E7A01603CD','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FFAEC4A016043F','Type':'PCM','Module':'AC2C'},{'ROMID':'28FF41DBA0160576','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF996EA0160458','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF0DF0A016055A','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FFDBE1A016052F','Type':'PCM','Module':'AC2C'},{'ROMID':'28FF8FA3A016039F','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF6F64A0160479','Type':'CellTab','Module':'AC2C'},{'ROMID':'28FF20B8A01604EC','Type':'CellTab','Module':'2072'},{'ROMID':'28FFB08CA0160543','Type':'CellTab','Module':'2072'},{'ROMID':'28FF18C0A01604E2','Type':'CellTab','Module':'2072'},{'ROMID':'28FF14E7A01603B6','Type':'PCM','Module':'2072'},{'ROMID':'28FF228BA01605F1','Type':'CellTab','Module':'2072'},{'ROMID':'28FFAE65A0160419','Type':'CellTab','Module':'2072'},{'ROMID':'28FF89E2A01605B1','Type':'CellTab','Module':'2072'},{'ROMID':'28FFE995A0160353','Type':'CellTab','Module':'2072'},{'ROMID':'28FF196AA016049D','Type':'PCM','Module':'2072'},{'ROMID':'28FFD5D2A016054D','Type':'CellTab','Module':'2072'},{'ROMID':'28FFCB64A0160455','Type':'CellTab','Module':'2072'},{'ROMID':'28FF9BDBA0160595','Type':'PCM','Module':'2072'},{'ROMID':'28FF07E1A0160550','Type':'CellTab','Module':'2072'},{'ROMID':'28FFA797A016031F','Type':'CellTab','Module':'2072'},{'ROMID':'28FFBFCBA0160414','Type':'CellTab','Module':'2072'},{'ROMID':'28FF90C8A0160388','Type':'CellTab','Module':'24AF'},{'ROMID':'28FF08BEA0160423','Type':'CellTab','Module':'24AF'},{'ROMID':'28FF42CEA016035C','Type':'CellTab','Module':'24AF'},{'ROMID':'28FF8AF8A0160301','Type':'CellTab','Module':'24AF'},{'ROMID':'28FFE6CAA016037E','Type':'CellTab','Module':'24AF'},{'ROMID':'28FFCE88A01604DC','Type':'PCM','Module':'24AF'},{'ROMID':'28FF51B8A01603CF','Type':'CellTab','Module':'24AF'},{'ROMID':'28FF6994A0160494','Type':'CellTab','Module':'24AF'},{'ROMID':'28FFF9F0A01605E3','Type':'CellTab','Module':'24AF'},{'ROMID':'28FFBD9CA01604C9','Type':'CellTab','Module':'24AF'},{'ROMID':'28FFE365A016041C','Type':'PCM','Module':'24AF'},{'ROMID':'28FF8BEBA016037C','Type':'CellTab','Module':'24AF'},{'ROMID':'28FF6B8EA016056A','Type':'CellTab','Module':'24AF'},{'ROMID':'28FFFBDAA016050B','Type':'PCM','Module':'24AF'},{'ROMID':'28FFFB8BA016055C','Type':'CellTab','Module':'24AF'},{'ROMID':'28FF187EA0160466','Type':'PCM','Module':'9D01'},{'ROMID':'28FFCCB8A0160417','Type':'CellTab','Module':'9D01'},{'ROMID':'28FF2A95A016033F','Type':'CellTab','Module':'9D01'},{'ROMID':'28FF21ACA0160394','Type':'CellTab','Module':'9D01'},{'ROMID':'28FFD1D2A0160552','Type':'CellTab','Module':'9D01'},{'ROMID':'28FFA9D8A016051A','Type':'CellTab','Module':'9D01'},{'ROMID':'28FFB9BBA01603A3','Type':'CellTab','Module':'9D01'},{'ROMID':'28FF7987A0160458','Type':'PCM','Module':'9D01'},{'ROMID':'28FF3D64A016046F','Type':'CellTab','Module':'9D01'},{'ROMID':'28FF63F5A0160568','Type':'CellTab','Module':'9D01'},{'ROMID':'28FF1BBAA016039C','Type':'CellTab','Module':'9D01'},{'ROMID':'28FF8796A01604EB','Type':'CellTab','Module':'9D01'},{'ROMID':'28FFA7E1A0160563','Type':'CellTab','Module':'9D01'},{'ROMID':'28FFCFE5A0160542','Type':'PCM','Module':'9D01'},{'ROMID':'28FF9F88A01605DA','Type':'CellTab','Module':'9D01'},{'ROMID':'28FFF8DFA01605C4','Type':'CellTab','Module':'DC45'},{'ROMID':'28FF9C97A0160468','Type':'CellTab','Module':'DC45'},{'ROMID':'28FF2284A016056B','Type':'CellTab','Module':'DC45'},{'ROMID':'28FFB6D7A0160593','Type':'PCM','Module':'DC45'},{'ROMID':'28FF5EB3A01604B7','Type':'CellTab','Module':'DC45'},{'ROMID':'28FFA1E4A016057E','Type':'CellTab','Module':'DC45'},{'ROMID':'28FFC5C9A01604C3','Type':'CellTab','Module':'DC45'},{'ROMID':'28FF55DDA016051C','Type':'CellTab','Module':'DC45'},{'ROMID':'28FFADB8A0160348','Type':'CellTab','Module':'DC45'},{'ROMID':'28FF8B93A016044B','Type':'PCM','Module':'DC45'},{'ROMID':'28FF8B73A0160402','Type':'PCM','Module':'DC45'},{'ROMID':'28FFE784A01604C5','Type':'CellTab','Module':'DC45'},{'ROMID':'28FFF7A4A016034A','Type':'CellTab','Module':'DC45'},{'ROMID':'28FFDF8AA0160534','Type':'CellTab','Module':'DC45'},{'ROMID':'28FFBF87A01604E6','Type':'CellTab','Module':'DC45'}]}"

cf. https://stackoverflow.com/questions/9187885/trying-to-parse-json-in-python-valueerror-expecting-property-name

"Sometimes you can have this error because your string values are not well recognized by python. As an example: I've spent quite a lot of time searching for the origin of this kind of error. Here is what I found.

Sometimes a language recognizes a kind of quotes and not another one: btw, to parse a string in to json in JavaScript all quotes have to be in the ' format

to parse a string into json in JavaScript all quotes have to be in the " format which is not really logic.

Hopefully you can use the replace function. For Python:

json.loads(s.replace("\'", '"'));

Hope it will save you the time I've spent hunting this bug!"

edited Feb 10 '16 at 20:12 Rickest Rick

answered Dec 9 '13 at 15:06 gronaz


In [75]:
#json_tempSensorLocations = json.loads( rawstr_tempSensorLocations.replace('\n','').replace(' ','')) 
json_tempSensorLocations = json.loads( rawstr_tempSensorLocations.replace("\'", '"') )

In [77]:
json_tempSensorLocations.keys()


Out[77]:
[u'tempSensorLocations']

In [79]:
print(len(json_tempSensorLocations['tempSensorLocations']))
json_tempSensorLocations['tempSensorLocations'][0].keys()


255
Out[79]:
[u'ROMID', u'Type', u'Module']

logs/

Empty,


In [81]:
os.listdir('../react-groundstation/logs/')


Out[81]:
['poddaq.csv', 'emptyfile', 'output.csv']

node_modules/

I am assuming these are all the libraries or modules node installs for node.js and they need not be modified.


In [83]:
#for subdir_tuple in next(os.walk('../react-groundstation/node_modules/')):
#    print( subdir_tuple )
os.listdir("../react-groundstation/node_modules/")


Out[83]:
['spawn-command',
 'babel-plugin-transform-es2015-sticky-regex',
 'lodash.bind',
 'split',
 'defined',
 'natural-compare',
 'node-int64',
 'on-finished',
 'is-redirect',
 'engine.io',
 'find-up',
 'default-require-extensions',
 'cycle',
 'babel-helper-explode-assignable-expression',
 'forwarded',
 'semver-diff',
 'js-base64',
 'decimal.js',
 'slice-ansi',
 'worker-farm',
 'num2fraction',
 'esrecurse',
 'react-router',
 'istanbul-lib-hook',
 'postcss-calc',
 'webpack-dev-middleware',
 'etag',
 'lcid',
 'postcss-modules-local-by-default',
 'postcss-atroot',
 'mathjs',
 'ps-tree',
 'babel-preset-env',
 'wrap-ansi',
 'minimatch',
 'blob',
 'postcss-merge-rules',
 'ignore-by-default',
 'eslint-config-semistandard',
 'postcss-selector-not',
 'glob-all',
 'whatwg-url',
 'math-expression-evaluator',
 'ws',
 'tiny-emitter',
 'browser-resolve',
 'ipaddr.js',
 'har-validator',
 'pkg-dir',
 'type-detect',
 'oauth-sign',
 'eslint-plugin-jsx-a11y',
 'babel-runtime',
 'verror',
 'backo2',
 'babel-types',
 'assert-plus',
 'sshpk',
 'levn',
 'babylon',
 'aws4',
 'html-encoding-sniffer',
 'to-fast-properties',
 'cosmiconfig',
 'filesize',
 'querystringify',
 'date-now',
 'better-assert',
 'jest-resolve-dependencies',
 'fs.realpath',
 'node-fetch',
 'file-entry-cache',
 'timed-out',
 'basic-auth',
 'arr-diff',
 'vm-browserify',
 'damerau-levenshtein',
 'cli-width',
 'async',
 'node-notifier',
 'uglify-js',
 'center-align',
 'which-module',
 'globby',
 'foreach',
 'dashdash',
 'babel-plugin-check-es2015-constants',
 'lodash.map',
 'browserify-aes',
 'eslint-plugin-standard',
 'core-util-is',
 'xml-name-validator',
 'diff',
 'read-pkg-up',
 'osenv',
 'enhanced-resolve',
 'indexes-of',
 'watchpack',
 'slide',
 'stack-trace',
 'circular-json',
 'babel-plugin-jest-hoist',
 'minimist',
 'babel-helper-regex',
 'yargs',
 'promise',
 'array-equal',
 'table',
 'babel-plugin-transform-es2015-computed-properties',
 'javascript-natural-sort',
 'regex-cache',
 'lodash.clonedeep',
 'hoist-non-react-statics',
 'postcss-load-plugins',
 'postcss-modules-values',
 'is-svg',
 'combined-stream',
 'align-text',
 'lodash.flatten',
 'postcss-discard-duplicates',
 'eyes',
 'array-union',
 'pinkie',
 'lodash.create',
 'process',
 'socket.io-parser',
 'chai',
 'nodemon',
 'entities',
 'websocket-extensions',
 'isexe',
 'isarray',
 'pretty-format',
 'postcss-ordered-values',
 'object-assign',
 'pluralize',
 'jsonify',
 'lodash.memoize',
 'path-parse',
 'ansi-styles',
 'touch',
 'jest-haste-map',
 'expand-range',
 'compression',
 'encodeurl',
 'jest-config',
 'lodash._basefor',
 'deep-eql',
 'stream-browserify',
 'colors',
 'ua-parser-js',
 'callsite',
 'babel-helper-builder-binary-assignment-operator-visitor',
 'restore-cursor',
 'esprima',
 'cookie',
 'function-bind',
 'renderkid',
 'domain-browser',
 'sha.js',
 'accepts',
 'jest-snapshot',
 'babel-traverse',
 'is-plain-obj',
 'prop-types',
 'bootstrap',
 'url-loader',
 'remove-trailing-separator',
 'has-ansi',
 'jest-environment-node',
 'arrify',
 'winston',
 'macaddress',
 'negotiator',
 'figures',
 'ansi-escapes',
 'babel-plugin-transform-regenerator',
 'map-stream',
 'string-width',
 'growly',
 'object-hash',
 'react-scripts',
 'acorn',
 'path-to-regexp',
 'react-dev-utils',
 'graceful-fs',
 'stringstream',
 'has-cors',
 'destroy',
 'babel-generator',
 'handlebars-delimiters',
 'to-array',
 'babel-plugin-transform-es2015-arrow-functions',
 '.cache',
 'onetime',
 'validate-npm-package-license',
 'proxy-addr',
 'babel-plugin-transform-react-display-name',
 'fill-range',
 'lodash._getnative',
 'read-cache',
 'jest',
 'postcss-selector-parser',
 'eval',
 'react-addons-test-utils',
 'glob-parent',
 'flat-cache',
 'mocha-eslint',
 'rx',
 'babel-plugin-transform-es2015-for-of',
 'is-fullwidth-code-point',
 'node-libs-browser',
 'ieee754',
 'istanbul-lib-instrument',
 'toposort',
 'babel-helper-define-map',
 'through',
 'unpipe',
 'exit-hook',
 'lodash.some',
 'lodash.isarguments',
 'object.entries',
 'encoding',
 'is-equal-shallow',
 'spdx-correct',
 'postcss-modules-scope',
 'generate-function',
 'convert-source-map',
 '.bin',
 'jsx-ast-utils',
 'finalhandler',
 'vendors',
 'jest-diff',
 'source-list-map',
 'is-date-object',
 'lodash._arrayeach',
 'registry-url',
 'fastparse',
 'callsites',
 'optionator',
 'path-type',
 'postcss-sass',
 'aws-sign2',
 'is-binary-path',
 'whatwg-fetch',
 'object.values',
 'stream-combiner',
 'brace-expansion',
 'string_decoder',
 'webpack-dev-server',
 'vary',
 'test-exclude',
 'style-loader',
 'invert-kv',
 'send',
 'requires-port',
 'postcss-reduce-initial',
 'filename-regex',
 'eventemitter3',
 'css-loader',
 'alphanum-sort',
 'socket.io',
 'date-fns',
 'find-cache-dir',
 'rgb',
 'typed-function',
 'babel-preset-jest',
 'xmlbuilder',
 'postcss-unique-selectors',
 'content-disposition',
 'cryptiles',
 'jest-mock',
 'yeast',
 'lodash._basecreate',
 'whatwg-encoding',
 'throat',
 'type-check',
 'sane',
 'anymatch',
 'case-sensitive-paths-webpack-plugin',
 'postcss-partial-import',
 'events',
 'walker',
 'iconv-lite',
 'lodash.filter',
 'indexof',
 'babel-core',
 'escape-html',
 'react-highcharts',
 'jsprim',
 'array-unique',
 'typedarray',
 'latest-version',
 'svgo',
 'postcss-discard-unused',
 'event-emitter',
 'object-is',
 'lodash.assignin',
 'postcss-scss',
 'babel-plugin-syntax-jsx',
 'color',
 'glob-base',
 'nth-check',
 'parsejson',
 'extract-text-webpack-plugin',
 'dom-converter',
 'resolve',
 'js-tokens',
 'babel-plugin-transform-es2015-spread',
 'wordwrap',
 'ignore',
 'package-json',
 'configstore',
 'tmpl',
 'es6-iterator',
 'jest-resolve',
 'function.prototype.name',
 'right-align',
 'is-arrayish',
 'merge-descriptors',
 'is-primitive',
 'nopt',
 'babel-plugin-transform-es2015-modules-amd',
 'require-from-string',
 'read-pkg',
 'is-property',
 'tryit',
 'querystring-es3',
 'mime-types',
 'ecc-jsbn',
 'cheerio',
 'open',
 'loader-fs-cache',
 'lodash.reject',
 'argparse',
 'inflight',
 'is-utf8',
 'express',
 'postcss-discard-overridden',
 'supports-color',
 'postcss-loader',
 'pretty-error',
 'json-loader',
 'babel-plugin-transform-es2015-unicode-regex',
 'readdirp',
 'tapable',
 'html-webpack-plugin',
 'camelcase',
 'cardinal',
 'cli-cursor',
 'cross-spawn',
 'babel-plugin-transform-runtime',
 'compressible',
 'fileset',
 'babel-plugin-syntax-async-functions',
 'coa',
 'postcss-normalize-url',
 'parse-json',
 'os-locale',
 'espree',
 'statuses',
 'private',
 'ncname',
 'json3',
 'stream-cache',
 'postcss-reduce-idents',
 'normalize-url',
 'postcss-colormin',
 'acorn-globals',
 'babel-plugin-transform-strict-mode',
 'postcss-message-helpers',
 'lodash.foreach',
 'bluebird',
 'array-uniq',
 'symbol-tree',
 'require-main-filename',
 'concurrently',
 'postcss-filter-plugins',
 'seed-random',
 'is-builtin-module',
 'asap',
 'jsonpointer',
 'shellwords',
 'del',
 'postcss-selector-matches',
 'constants-browserify',
 'lodash.camelcase',
 'babel-plugin-syntax-class-properties',
 'postcss-property-lookup',
 'object-component',
 'react',
 'regjsgen',
 'babel-plugin-transform-es2015-object-super',
 'builtin-status-codes',
 'normalize-package-data',
 'babel-plugin-transform-es2015-classes',
 'prepend-http',
 'postcss-discard-comments',
 'sax',
 'highcharts',
 'hoek',
 'tty-browserify',
 'babel-plugin-transform-es2015-block-scoping',
 'lodash._createassigner',
 'babel-helper-optimise-call-expression',
 'is-glob',
 'replaceall',
 'babel-helper-function-name',
 'mkdirp',
 'domutils',
 'ansi-html',
 'pause-stream',
 'postcss-minify-selectors',
 'esutils',
 'parseurl',
 'cookie-signature',
 'domelementtype',
 'crypto-browserify',
 'punycode',
 'lodash._arraycopy',
 'sntp',
 'istanbul-lib-report',
 'relateurl',
 'node-emoji',
 'babel-plugin-transform-es2015-function-name',
 'webpack-manifest-plugin',
 'isomorphic-fetch',
 'postcss-color-function',
 'postcss-discard-empty',
 'pify',
 'repeating',
 'lodash._isiterateecall',
 'range-parser',
 'is-dotfile',
 'acorn-jsx',
 'chokidar',
 'postcss-custom-selectors',
 'bcrypt-pbkdf',
 'mute-stream',
 'css-color-names',
 'webpack-hot-middleware',
 'babel-messages',
 'babel-plugin-transform-class-properties',
 'es-to-primitive',
 'lodash.merge',
 'babel-plugin-transform-async-to-generator',
 'jest-jasmine2',
 'utils-merge',
 'wtf-8',
 'color-convert',
 'debug',
 'postcss-extend',
 'spdx-license-ids',
 'es6-set',
 'eventsource',
 'es5-ext',
 'assert',
 'html-entities',
 'babel-plugin-transform-flow-strip-types',
 'browser-stdout',
 'postcss-nested',
 'inquirer',
 'postcss-convert-values',
 'postcss-simple-vars',
 'lodash._basecopy',
 'parseuri',
 'sugarss',
 'babel-plugin-syntax-trailing-function-commas',
 'postcss-custom-media',
 'window-size',
 'lodash.assign',
 'babel-plugin-transform-react-jsx-source',
 'tough-cookie',
 'event-stream',
 'babel-plugin-transform-es2015-block-scoped-functions',
 'eslint',
 'babel-register',
 'precss',
 'domhandler',
 'babel-plugin-transform-es2015-template-literals',
 'fresh',
 'dotenv',
 'babel-plugin-istanbul',
 'shebang-command',
 'rimraf',
 'path-exists',
 'redeyed',
 'caniuse-db',
 'uniq',
 'lodash._baseclone',
 'is-absolute-url',
 'postcss-mixins',
 'binary-extensions',
 'nwmatcher',
 'es6-promise',
 'babel-plugin-transform-react-jsx',
 'path-browserify',
 'colormin',
 'concat-stream',
 'eslint-plugin-promise',
 'prelude-ls',
 'set-immediate-shim',
 'extend',
 'doctrine',
 'spdx-expression-parse',
 'duplexify',
 'flatten',
 'babel-plugin-transform-es2015-modules-commonjs',
 'media-typer',
 'socket.io-client',
 'timers-browserify',
 'pkg-up',
 'postcss-normalize-charset',
 'https-browserify',
 'is-symbol',
 'cssesc',
 'hosted-git-info',
 'invariant',
 'babel-plugin-transform-es2015-duplicate-keys',
 'getpass',
 'lazy-cache',
 'postcss-value-parser',
 'has-binary',
 'escope',
 'fs-promise',
 'is-extglob',
 'object.omit',
 'y18n',
 'mime-db',
 'jsesc',
 'shelljs',
 'end-of-stream',
 'uniqs',
 'interpolate-html-css-modules-webpack-plugin',
 'postcss-minify-params',
 'is-finite',
 'he',
 'lodash.pickby',
 'enzyme',
 'css-select',
 'webpack-core',
 'detect-indent',
 'emojis-list',
 'dom-serializer',
 'whet.extend',
 'safe-buffer',
 'is-path-in-cwd',
 'defer-promise',
 'string-length',
 'xdg-basedir',
 'warning',
 'glob',
 'expand-brackets',
 'postcss-nesting',
 'jest-matcher-utils',
 'is-path-cwd',
 'postcss-merge-longhand',
 'fs-extra',
 'abbrev',
 'contains-path',
 'create-react-class',
 'boolbase',
 'got',
 'setimmediate',
 'recursive-readdir',
 'strict-uri-encode',
 'estraverse',
 'marked',
 'lodash._bindcallback',
 'home-or-tmp',
 'is-path-inside',
 'babel-eslint',
 'delayed-stream',
 'babel-code-frame',
 'tweetnacl',
 'fbjs',
 'commander',
 'webpack',
 'code-point-at',
 'postcss-custom-properties',
 'regenerator-runtime',
 'source-map',
 'istanbul',
 'nested-error-stacks',
 'reduce-css-calc',
 'jest-util',
 'babel-plugin-transform-exponentiation-operator',
 'http-proxy',
 'is-callable',
 'component-bind',
 'arr-flatten',
 'content-type-parser',
 'cssom',
 'jest-environment-jsdom',
 'xml2js',
 'options',
 'sprintf-js',
 'deep-extend',
 'jest-matchers',
 'util',
 'regjsparser',
 'cssstyle',
 'which',
 'eslint-plugin-flowtype',
 'string-hash',
 'loader-utils',
 'query-string',
 'babel-plugin-transform-es2015-modules-umd',
 'socket.io-adapter',
 'handlebars',
 'babel-plugin-transform-es2015-destructuring',
 'caller-path',
 'html-comment-regex',
 'eslint-config-react-app',
 'trim-right',
 'micromatch',
 'for-in',
 'caseless',
 'babel-plugin-transform-object-rest-spread',
 'isobject',
 'longest',
 'object.assign',
 'history',
 'normalize-range',
 'es6-weak-map',
 'type-is',
 'babel-loader',
 'strip-bom',
 'load-json-file',
 'lodash._baseassign',
 'semver',
 'fast-levenshtein',
 'merge',
 'lowercase-keys',
 'write',
 'lodash',
 'has',
 'os-homedir',
 'uniqid',
 'ee-first',
 'fb-watchman',
 'postcss-svgo',
 'set-blocking',
 'array-flatten',
 'clean-css',
 'babel-preset-react',
 'makeerror',
 'buffer',
 'setprototypeof',
 'html-minifier',
 'fs',
 'babel-plugin-syntax-flow',
 'gonzales-pe',
 'ci-info',
 'jquery',
 'promise-each',
 'xtend',
 'bser',
 'ajv',
 'is-my-json-valid',
 'icss-replace-symbols',
 'lodash.defaults',
 'is-stream',
 'strip-ansi',
 'postcss-merge-idents',
 'jest-runtime',
 'parse5',
 'detect-port',
 'jest-file-exists',
 'postcss-minify-gradients',
 'after',
 'component-inherit',
 'eslint-loader',
 'babel-plugin-syntax-exponentiation-operator',
 'url-parse',
 'original',
 'istanbul-api',
 'babel-plugin-transform-react-jsx-self',
 'babel-jest',
 'require-uncached',
 'babel-helper-call-delegate',
 'regenerator-transform',
 'es6-symbol',
 'caniuse-api',
 'tcomb',
 'async-each',
 'xmlhttprequest-ssl',
 'read-all-stream',
 'readable-stream',
 'is-posix-bracket',
 'repeat-string',
 'faye-websocket',
 'webidl-conversions',
 'pinkie-promise',
 'process-nextick-args',
 'stream-http',
 'http-proxy-middleware',
 'babel-preset-es2015',
 'postcss-advanced-variables',
 'gzip-size',
 'postcss-minify-font-values',
 'sort-keys',
 'bytes',
 'color-name',
 'string.prototype.codepointat',
 'performance-now',
 'methods',
 'babel-template',
 'balanced-match',
 'loose-envify',
 'generate-object-property',
 'postcss-modules-extract-imports',
 'growl',
 'react-test-renderer',
 'base64id',
 'builtin-modules',
 'globals',
 'parseqs',
 'lodash.uniq',
 'require-directory',
 'es6-map',
 'regenerate',
 'istanbul-reports',
 'postcss-load-options',
 'has-flag',
 'eslint-plugin-react',
 'postcss-smart-import',
 'abab',
 'once',
 'webpack-sources',
 'readline2',
 'jsonfile',
 'imurmurhash',
 'write-file-atomic',
 'har-schema',
 'json-stable-stringify',
 'postcss',
 'base64-arraybuffer',
 'istanbul-lib-source-maps',
 'core-js',
 'lodash.isarray',
 'is-npm',
 'engine.io-client',
 'no-case',
 'opn',
 'sockjs',
 'chalk',
 'deep-is',
 'ms',
 'autoprefixer',
 'clone',
 'escape-string-regexp',
 'duplexer',
 'utila',
 'number-is-nan',
 'regexpu-core',
 'lru-cache',
 'undefsafe',
 'is-typedarray',
 'eslint-config-standard',
 'assertion-error',
 'csso',
 'js-yaml',
 'extsprintf',
 'rechoir',
 'request',
 'ansi-regex',
 'os-browserify',
 'cross-env',
 'eslint-plugin-mocha',
 'progress',
 'define-properties',
 'sockjs-client',
 'mocha',
 'form-data',
 'lower-case',
 'path-is-inside',
 'file-loader',
 'reduce-function-call',
 'esquery',
 'css-what',
 'for-own',
 'lodash.toarray',
 'text-table',
 'any-promise',
 'util-deprecate',
 'lodash.keys',
 'wrappy',
 'url',
 'forever-agent',
 'strip-json-comments',
 'babel-preset-react-app',
 'error-ex',
 'tr46',
 'xml-char-classes',
 'require-like',
 'ripemd160',
 'rc',
 'parse-glob',
 'tunnel-agent',
 'escodegen',
 'slash',
 'kind-of',
 'os-tmpdir',
 'react-dom',
 'jsdom',
 'postcss-load-config',
 'browserify-zlib',
 'append-transform',
 'isstream',
 'boom',
 'istanbul-lib-coverage',
 'babel-plugin-transform-es2015-typeof-symbol',
 'exec-sh',
 'serve-static',
 'co',
 'console-browserify',
 'arraybuffer.slice',
 'babel-plugin-transform-es2015-modules-systemjs',
 'stream-shift',
 'es-abstract',
 'commondir',
 'is-extendable',
 'htmlparser2',
 'param-case',
 'is-directory',
 'is-resolvable',
 'babel-plugin-transform-es2015-literals',
 'electron-to-chromium',
 'lodash.reduce',
 'from',
 'array-differ',
 'jsbn',
 'json5',
 'babel-plugin-transform-es2015-shorthand-properties',
 'path-is-absolute',
 'postcss-reduce-transforms',
 'qs',
 'http-signature',
 'clap',
 'decamelize',
 'optimist',
 'json-schema',
 'interpret',
 'engine.io-parser',
 'extglob',
 'ultron',
 'ini',
 'is-windows',
 'depd',
 'babel-helper-replace-supers',
 'lodash.cond',
 'pseudomap',
 'tree-kill',
 'ansicolors',
 'upper-case',
 'babel-helper-hoist-variables',
 'yargs-parser',
 'normalize-path',
 'asn1',
 'ramda',
 'browserslist',
 'cliui',
 'http-errors',
 'randomatic',
 'q',
 'lodash.pick',
 'uglify-to-browserify',
 'base64-js',
 'amdefine',
 'user-home',
 'is-subset',
 'object-keys',
 'css-color-function',
 'big.js',
 'resolve-from',
 'mime',
 'json-stringify-safe',
 'memory-fs',
 'pako',
 'uuid',
 'ajv-keywords',
 'pbkdf2-compat',
 'eslint-import-resolver-node',
 'on-headers',
 'to-arraybuffer',
 'run-async',
 'rx-lite',
 'jest-changed-files',
 'update-notifier',
 'postcss-media-minmax',
 'yallist',
 'errno',
 'repeat-element',
 'complex.js',
 'babel-helper-get-function-arity',
 'color-string',
 'babel-plugin-transform-es2015-parameters',
 'graceful-readlink',
 'prr',
 'babel-helper-remap-async-to-generator',
 'component-emitter',
 'eslint-module-utils',
 'is-ci',
 'cli-table',
 'multimatch',
 'babel-plugin-syntax-object-rest-spread',
 'marked-terminal',
 'babel-helper-builder-react-jsx',
 'cli-usage',
 'klaw',
 'css-selector-tokenizer',
 'is-regex',
 'babel-plugin-transform-react-constant-elements',
 'serve-index',
 'postcss-zindex',
 'd',
 'connect-history-api-fallback',
 'babel-helpers',
 'hawk',
 'querystring',
 'inherits',
 'morgan',
 'batch',
 'lodash.restparam',
 'braces',
 'get-caller-file',
 'asynckit',
 'shebang-regex',
 'websocket-driver',
 'is-buffer',
 'is-number',
 'camel-case',
 'preserve',
 'watch',
 'infinity-agent',
 'content-type',
 'fraction.js',
 'cssnano',
 'concat-map',
 'source-map-support',
 'eslint-plugin-import']

pod/

This is for UDP functions (UDP protocol) to send data from pod (and boilerplate cases to test)

public/

Webpage

server/

everything related to udp handling and pod comunication

src/

everything react-frontend related

test/

there's the data/random generator


In [ ]: