// Path: json-unit-core/src/main/java/net/javacrumbs/jsonunit/core/internal/ArrayUtils.java
// static List<Boolean> toBoolList(boolean[] source) {
//     List<Boolean> result = new ArrayList<>(source.length);
//     for (boolean value : source) {
//         result.add(value);
//     }
//     return result;
// }
// 
// Path: json-unit-core/src/main/java/net/javacrumbs/jsonunit/core/internal/ArrayUtils.java
// static List<Double> toDoubleList(double[] source) {
//     return Arrays.stream(source).boxed().collect(toList());
// }
// 
// Path: json-unit-core/src/main/java/net/javacrumbs/jsonunit/core/internal/ArrayUtils.java
// static List<Integer> toIntList(int[] source) {
//     return Arrays.stream(source).boxed().collect(toList());
// }


import org.apache.johnzon.core.JsonLongImpl;
import org.apache.johnzon.mapper.Mapper;
import org.apache.johnzon.mapper.MapperBuilder;
import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonNumber;
import javax.json.JsonObject;
import javax.json.JsonReader;
import javax.json.JsonString;
import javax.json.JsonValue;
import javax.json.stream.JsonParsingException;
import java.io.Reader;
import java.math.BigDecimal;
import java.util.Iterator;
import java.util.Map;
import static java.util.Arrays.asList;
import static net.javacrumbs.jsonunit.core.internal.ArrayUtils.toBoolList;
import static net.javacrumbs.jsonunit.core.internal.ArrayUtils.toDoubleList;
import static net.javacrumbs.jsonunit.core.internal.ArrayUtils.toIntList;
                    @Override
                    public KeyValue next() {
                        Map.Entry<String, JsonValue> entry = iterator.next();
                        return new KeyValue(entry.getKey(), newNode(entry.getValue()));
                    }
                };
            }
            throw new IllegalStateException("Can call fields() only on an JsonObject");
        }

        @Override
        public Node get(String key) {
            if (jsonNode instanceof JsonObject) {
                JsonObject jsonObject = (JsonObject) this.jsonNode;
                if (jsonObject.containsKey(key)) {
                    return newNode(jsonObject.get(key));
                } else {
                    return Node.MISSING_NODE;
                }
            } else {
                return Node.MISSING_NODE;
            }
        }

        @Override
        public boolean isMissingNode() {
            return false;
        }

        @Override
// Path: json-unit-core/src/main/java/net/javacrumbs/jsonunit/core/internal/ArrayUtils.java
// static List<Boolean> toBoolList(boolean[] source) {
//     List<Boolean> result = new ArrayList<>(source.length);
//     for (boolean value : source) {
//         result.add(value);
//     }
//     return result;
// }
// 
// Path: json-unit-core/src/main/java/net/javacrumbs/jsonunit/core/internal/ArrayUtils.java
// static List<Double> toDoubleList(double[] source) {
//     return Arrays.stream(source).boxed().collect(toList());
// }
// 
// Path: json-unit-core/src/main/java/net/javacrumbs/jsonunit/core/internal/ArrayUtils.java
// static List<Integer> toIntList(int[] source) {
//     return Arrays.stream(source).boxed().collect(toList());
// }


// Path: json-unit-core/src/main/java/net/javacrumbs/jsonunit/core/internal/JohnzonNodeFactory.java
import org.apache.johnzon.core.JsonLongImpl;
import org.apache.johnzon.mapper.Mapper;
import org.apache.johnzon.mapper.MapperBuilder;
import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonNumber;
import javax.json.JsonObject;
import javax.json.JsonReader;
import javax.json.JsonString;
import javax.json.JsonValue;
import javax.json.stream.JsonParsingException;
import java.io.Reader;
import java.math.BigDecimal;
import java.util.Iterator;
import java.util.Map;
import static java.util.Arrays.asList;
import static net.javacrumbs.jsonunit.core.internal.ArrayUtils.toBoolList;
import static net.javacrumbs.jsonunit.core.internal.ArrayUtils.toDoubleList;
import static net.javacrumbs.jsonunit.core.internal.ArrayUtils.toIntList;

                    @Override
                    public KeyValue next() {
                        Map.Entry<String, JsonValue> entry = iterator.next();
                        return new KeyValue(entry.getKey(), newNode(entry.getValue()));
                    }
                };
            }
            throw new IllegalStateException("Can call fields() only on an JsonObject");
        }

        @Override
        public Node get(String key) {
            if (jsonNode instanceof JsonObject) {
                JsonObject jsonObject = (JsonObject) this.jsonNode;
                if (jsonObject.containsKey(key)) {
                    return newNode(jsonObject.get(key));
                } else {
                    return Node.MISSING_NODE;
                }
            } else {
                return Node.MISSING_NODE;
            }
        }

        @Override
        public boolean isMissingNode() {
            return false;
        }

        @Override
        public boolean isNull() {