diff --git a/CHANGELOG.md b/CHANGELOG.md index 64c7a950..f53f635a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,10 @@ * None. ### Enchancements -* None +* Reenable Realm for RN Android (#1506) ### Bug fixes +* Fix json parsing in RN debugger. * Reenable Realm for RN Android (#1506), which was disabled only in 2.0.8 by mistake. ### Internal diff --git a/src/rpc.cpp b/src/rpc.cpp index 1868ce71..f821ad8b 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -600,13 +600,13 @@ json RPCServer::serialize_json_value(JSValueRef js_value) { } JSValueRef RPCServer::deserialize_json_value(const json dict) { - json oid = dict["id"]; + json oid = dict.value("id", json()); if (oid.is_number()) { return m_objects[oid.get()]; } - json value = dict["value"]; - json type = dict["type"]; + json value = dict.value("value", json()); + json type = dict.value("type", json()); if (type.is_string()) { std::string type_string = type.get();