I'm trying to parse a json object that an application (AWS lambda) wrote in a log file, but this json has an stringify object nested. Something like that:
input = '{"object":"{\"base\":\"brn\",\"scope\":\"all\",\"channel\":\"sve\",\"service\":\"getAssociatesCards\",\"entity\":\"consolidate\",\"attribute\":\"cRelId\",\"qualifier\":\"45430608\"}"}'
And when i try to parse it fails:
JSON.parse(input)
With this error:
SyntaxError: Unexpected token b in JSON at position 13
What can i do for fix this and get a nice Json Object?