private static IEnumerable <object> EnumerateArray(object root, ArrayInstance arr, bool flattenArrays, bool forIndexing, int recursiveLevel, Engine engine, JsonOperationContext context) { foreach (var(key, val) in arr.GetOwnPropertiesWithoutLength()) { yield return(ToBlittableSupportedType(root, val.Value, flattenArrays, forIndexing, recursiveLevel, engine, context)); } }
private void WriteArray(ArrayInstance arrayInstance) { _writer.StartWriteArray(); foreach (var property in arrayInstance.GetOwnPropertiesWithoutLength()) { JsValue propertyValue = SafelyGetJsValue(property.Value); WriteJsonValue(arrayInstance, false, property.Key.AsString(), propertyValue); } _writer.WriteArrayEnd(); }