Ejemplo n.º 1
0
 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));
     }
 }
Ejemplo n.º 2
0
        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();
        }