While importing json into framework to obtain desiredcapabilities its printing through console.log()

using console to print the desiredcapabilities from json works fine and i am able to access but while initializing it says throw e unexpexted data error

initialization is done using driver .init(desiredcapabilities)