test_class.file: oak-store-spi/src/test/java/org/apache/jackrabbit/oak/json/JsonSerializerTest.java
test_class.identifier: JsonSerializerTest
test_case.body: @Test
      public void childOrder() throws Exception{
          NodeBuilder builder = EMPTY_NODE.builder();
          builder.child("a");
          builder.child("b");
          builder.child("c");
          List<String> expectedOrder = Arrays.asList("a", "c", "b");
          builder.setProperty(":childOrder", expectedOrder, Type.NAMES);
  
          NodeState state = builder.getNodeState();
          String json = serialize(state);
  
          JsopReader reader = new JsopTokenizer(json);
          List<String> childNames = Lists.newArrayList();
          reader.read('{');
          do {
              String key = reader.readString();
              reader.read(':');
              if (reader.matches('{')) {
                  childNames.add(key);
                  reader.matches('}');
              }
  
          } while (reader.matches(','));
  
          assertEquals(expectedOrder, childNames);
      }
test_case.class_method_signature: JsonSerializerTest.childOrder()
test_case.full_signature: @Test public void childOrder()
test_case.identifier: childOrder
test_case.invocations: builder child child child asList setProperty getNodeState serialize newArrayList read readString read matches add matches matches assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void childOrder()
focal_class.declarator: log = LoggerFactory.getLogger(JsonSerializer.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(JsonSerializer.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: DEFAULT_FILTER_EXPRESSION =
          "{\"properties\":[\"*\", \"-:childNodeCount\"]}"
focal_class.modifier: public static final
focal_class.original_string: public static final String DEFAULT_FILTER_EXPRESSION =
          "{\"properties\":[\"*\", \"-:childNodeCount\"]}";
focal_class.type: String
focal_class.var_name: DEFAULT_FILTER_EXPRESSION
focal_class.declarator: DEFAULT_FILTER = new JsonFilter(DEFAULT_FILTER_EXPRESSION)
focal_class.modifier: private static final
focal_class.original_string: private static final JsonFilter DEFAULT_FILTER = new JsonFilter(DEFAULT_FILTER_EXPRESSION);
focal_class.type: JsonFilter
focal_class.var_name: DEFAULT_FILTER
focal_class.declarator: ERROR_JSON_KEY = "_error"
focal_class.modifier: private static final
focal_class.original_string: private static final String ERROR_JSON_KEY = "_error";
focal_class.type: String
focal_class.var_name: ERROR_JSON_KEY
focal_class.declarator: ERROR_JSON_VALUE_PREFIX = "ERROR: "
focal_class.modifier: private static final
focal_class.original_string: private static final String ERROR_JSON_VALUE_PREFIX = "ERROR: ";
focal_class.type: String
focal_class.var_name: ERROR_JSON_VALUE_PREFIX
focal_class.declarator: json
focal_class.modifier: private final
focal_class.original_string: private final JsopWriter json;
focal_class.type: JsopWriter
focal_class.var_name: json
focal_class.declarator: depth
focal_class.modifier: private final
focal_class.original_string: private final int depth;
focal_class.type: int
focal_class.var_name: depth
focal_class.declarator: offset
focal_class.modifier: private final
focal_class.original_string: private final long offset;
focal_class.type: long
focal_class.var_name: offset
focal_class.declarator: maxChildNodes
focal_class.modifier: private final
focal_class.original_string: private final int maxChildNodes;
focal_class.type: int
focal_class.var_name: maxChildNodes
focal_class.declarator: filter
focal_class.modifier: private final
focal_class.original_string: private final JsonFilter filter;
focal_class.type: JsonFilter
focal_class.var_name: filter
focal_class.declarator: blobs
focal_class.modifier: private final
focal_class.original_string: private final BlobSerializer blobs;
focal_class.type: BlobSerializer
focal_class.var_name: blobs
focal_class.declarator: catchExceptions
focal_class.modifier: private final
focal_class.original_string: private final boolean catchExceptions;
focal_class.type: boolean
focal_class.var_name: catchExceptions
focal_class.file: oak-store-spi/src/main/java/org/apache/jackrabbit/oak/json/JsonSerializer.java
focal_class.identifier: JsonSerializer
focal_class.class_method_signature: JsonSerializer.JsonSerializer(
              JsopWriter json, int depth, long offset, int maxChildNodes,
              JsonFilter filter, BlobSerializer blobs, boolean catchExceptions)
focal_class.full_signature: private  JsonSerializer(
              JsopWriter json, int depth, long offset, int maxChildNodes,
              JsonFilter filter, BlobSerializer blobs, boolean catchExceptions)
focal_class.identifier: JsonSerializer
focal_class.modifiers: private
focal_class.parameters: (
              JsopWriter json, int depth, long offset, int maxChildNodes,
              JsonFilter filter, BlobSerializer blobs, boolean catchExceptions)
focal_class.signature:  JsonSerializer(
              JsopWriter json, int depth, long offset, int maxChildNodes,
              JsonFilter filter, BlobSerializer blobs, boolean catchExceptions)
focal_class.class_method_signature: JsonSerializer.JsonSerializer(
              int depth, long offset, int maxChildNodes,
              String filter, BlobSerializer blobs)
focal_class.full_signature: public  JsonSerializer(
              int depth, long offset, int maxChildNodes,
              String filter, BlobSerializer blobs)
focal_class.identifier: JsonSerializer
focal_class.modifiers: public
focal_class.parameters: (
              int depth, long offset, int maxChildNodes,
              String filter, BlobSerializer blobs)
focal_class.signature:  JsonSerializer(
              int depth, long offset, int maxChildNodes,
              String filter, BlobSerializer blobs)
focal_class.class_method_signature: JsonSerializer.JsonSerializer(JsopWriter json,
              int depth, long offset, int maxChildNodes,
              String filter, BlobSerializer blobs)
focal_class.full_signature: public  JsonSerializer(JsopWriter json,
              int depth, long offset, int maxChildNodes,
              String filter, BlobSerializer blobs)
focal_class.identifier: JsonSerializer
focal_class.modifiers: public
focal_class.parameters: (JsopWriter json,
              int depth, long offset, int maxChildNodes,
              String filter, BlobSerializer blobs)
focal_class.signature:  JsonSerializer(JsopWriter json,
              int depth, long offset, int maxChildNodes,
              String filter, BlobSerializer blobs)
focal_class.class_method_signature: JsonSerializer.JsonSerializer(JsopWriter json,
                            int depth, long offset, int maxChildNodes,
                            String filter, BlobSerializer blobs, boolean catchExceptions)
focal_class.full_signature: public  JsonSerializer(JsopWriter json,
                            int depth, long offset, int maxChildNodes,
                            String filter, BlobSerializer blobs, boolean catchExceptions)
focal_class.identifier: JsonSerializer
focal_class.modifiers: public
focal_class.parameters: (JsopWriter json,
                            int depth, long offset, int maxChildNodes,
                            String filter, BlobSerializer blobs, boolean catchExceptions)
focal_class.signature:  JsonSerializer(JsopWriter json,
                            int depth, long offset, int maxChildNodes,
                            String filter, BlobSerializer blobs, boolean catchExceptions)
focal_class.class_method_signature: JsonSerializer.JsonSerializer(JsopWriter json, BlobSerializer blobs)
focal_class.full_signature: public  JsonSerializer(JsopWriter json, BlobSerializer blobs)
focal_class.identifier: JsonSerializer
focal_class.modifiers: public
focal_class.parameters: (JsopWriter json, BlobSerializer blobs)
focal_class.signature:  JsonSerializer(JsopWriter json, BlobSerializer blobs)
focal_class.class_method_signature: JsonSerializer.JsonSerializer(JsopWriter json, String filter, BlobSerializer blobs)
focal_class.full_signature: public  JsonSerializer(JsopWriter json, String filter, BlobSerializer blobs)
focal_class.identifier: JsonSerializer
focal_class.modifiers: public
focal_class.parameters: (JsopWriter json, String filter, BlobSerializer blobs)
focal_class.signature:  JsonSerializer(JsopWriter json, String filter, BlobSerializer blobs)
focal_class.class_method_signature: JsonSerializer.getChildSerializer()
focal_class.full_signature: protected JsonSerializer getChildSerializer()
focal_class.identifier: getChildSerializer
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: JsonSerializer
focal_class.signature: JsonSerializer getChildSerializer()
focal_class.class_method_signature: JsonSerializer.serialize(NodeState node)
focal_class.full_signature: public void serialize(NodeState node)
focal_class.identifier: serialize
focal_class.modifiers: public
focal_class.parameters: (NodeState node)
focal_class.return: void
focal_class.signature: void serialize(NodeState node)
focal_class.class_method_signature: JsonSerializer.serialize(NodeState node, String basePath)
focal_class.full_signature: public void serialize(NodeState node, String basePath)
focal_class.identifier: serialize
focal_class.modifiers: public
focal_class.parameters: (NodeState node, String basePath)
focal_class.return: void
focal_class.signature: void serialize(NodeState node, String basePath)
focal_class.class_method_signature: JsonSerializer.getChildNodeEntries(NodeState node, String basePath)
focal_class.full_signature: private Iterable<? extends ChildNodeEntry> getChildNodeEntries(NodeState node, String basePath)
focal_class.identifier: getChildNodeEntries
focal_class.modifiers: private
focal_class.parameters: (NodeState node, String basePath)
focal_class.return: Iterable<? extends ChildNodeEntry>
focal_class.signature: Iterable<? extends ChildNodeEntry> getChildNodeEntries(NodeState node, String basePath)
focal_class.class_method_signature: JsonSerializer.serialize(PropertyState property)
focal_class.full_signature: public void serialize(PropertyState property)
focal_class.identifier: serialize
focal_class.modifiers: public
focal_class.parameters: (PropertyState property)
focal_class.return: void
focal_class.signature: void serialize(PropertyState property)
focal_class.class_method_signature: JsonSerializer.serialize(PropertyState property, Type<?> type, int index)
focal_class.full_signature: public void serialize(PropertyState property, Type<?> type, int index)
focal_class.identifier: serialize
focal_class.modifiers: public
focal_class.parameters: (PropertyState property, Type<?> type, int index)
focal_class.return: void
focal_class.signature: void serialize(PropertyState property, Type<?> type, int index)
focal_class.class_method_signature: JsonSerializer.toString()
focal_class.full_signature: public String toString()
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public void serialize(NodeState node) {
          serialize(node, "");
      }
focal_method.class_method_signature: JsonSerializer.serialize(NodeState node)
focal_method.full_signature: public void serialize(NodeState node)
focal_method.identifier: serialize
focal_method.invocations: serialize
focal_method.modifiers: public
focal_method.parameters: (NodeState node)
focal_method.return: void
focal_method.signature: void serialize(NodeState node)