code: public final void deserializeChildren(final IContainer<?, ?> container, final JSONObject node, final IContainerFactory factory, final ValidationContext ctx) throws ValidationException
      {
          JSONValue jsonvalu = node.get("children");
  
          if (null == jsonvalu)
          {
              return; // OK - 'children' is optional
          }
          ctx.push("children");
  
          final JSONArray array = jsonvalu.isArray();
  
          if (null == array)
          {
              ctx.addBadTypeError("Array");
          }
          else
          {
              final int size = array.size();
  
              for (int i = 0; i < size; i++)
              {
                  ctx.pushIndex(i);
  
                  jsonvalu = array.get(i);
  
                  final JSONObject object = jsonvalu.isObject();
  
                  if (null == object)
                  {
                      ctx.addBadTypeError("Object");
                  }
                  else
                  {
                      final IJSONSerializable<?> serial = fromJSON(object, ctx);
  
                      if (null != serial)
                      {
                          if (serial instanceof Node)
                          {
                              if (false == factory.addNodeForContainer(container, (Node<?>) serial, ctx))
                              {
                                  ;
                              }
                          }
                          else
                          {
                              ctx.addBadTypeError("Node");
                          }
                      }
                  }
                  ctx.pop(); // index
              }
          }
          ctx.pop(); // children
      }
docs: Creates the child nodes for a {@link IJSONSerializable} that implements
  {@link IContainer} from a JSONObject node.
  <p>
  You should only call this when you're writing your own {@link IContainer} class
  and you're building a custom {@link IFactory}.
  
  @param container IContainer
  @param node parent JSONObject
  @param factory IContainerFactory
  @param ctx ValidationContext
  @throws ValidationException