Added handling of invalid JSON strings to the bridge + added invalidJson
test.