I have a JSON file from which I read data and get a dictionary I would like this complete dictionary to be inserted into a SQL Server database so that the same can be read as dictionary from the database.

But upon insertion of the same I get an error as below.

> 
> 07/13/2018 11:25:00: ERROR: Exception 102:  
> 
> Incorrect syntax near 'camera'.DB-Lib error
> 
> 
> Msg 102, severity 15:  
> 
> General SQL Server error: Check messages from the SQL Server
> 
> 
> 

Below is my `INSERT` query.

```
INSERT INTO hw_info (hostname, peripheralsInfo)
VALUES ('linux-host', '{u'camera': {u'ab': {u'model': u'Model1', u'version': u'Version1', u'selectorMask': u'Data1'}, u'cd': {u'model': u'Model2', u'version': u'Version2', u'selectorMask': u'Data2'}}}')

```

How can this dictionary be inserted into the database?