commit
1077030625
|
@ -4,9 +4,10 @@
|
||||||
* None.
|
* None.
|
||||||
|
|
||||||
### Enchancements
|
### Enchancements
|
||||||
* None
|
* Reenable Realm for RN Android (#1506)
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
* Fix json parsing in RN debugger.
|
||||||
* Reenable Realm for RN Android (#1506), which was disabled only in 2.0.8 by mistake.
|
* Reenable Realm for RN Android (#1506), which was disabled only in 2.0.8 by mistake.
|
||||||
|
|
||||||
### Internal
|
### Internal
|
||||||
|
|
|
@ -600,13 +600,13 @@ json RPCServer::serialize_json_value(JSValueRef js_value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
JSValueRef RPCServer::deserialize_json_value(const json dict) {
|
JSValueRef RPCServer::deserialize_json_value(const json dict) {
|
||||||
json oid = dict["id"];
|
json oid = dict.value("id", json());
|
||||||
if (oid.is_number()) {
|
if (oid.is_number()) {
|
||||||
return m_objects[oid.get<RPCObjectID>()];
|
return m_objects[oid.get<RPCObjectID>()];
|
||||||
}
|
}
|
||||||
|
|
||||||
json value = dict["value"];
|
json value = dict.value("value", json());
|
||||||
json type = dict["type"];
|
json type = dict.value("type", json());
|
||||||
|
|
||||||
if (type.is_string()) {
|
if (type.is_string()) {
|
||||||
std::string type_string = type.get<std::string>();
|
std::string type_string = type.get<std::string>();
|
||||||
|
|
Loading…
Reference in New Issue