/* * Copyright (c) 2022, Linus Groh * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Web::Infra { WebIDL::ExceptionOr parse_json_string_to_javascript_value(JS::VM&, StringView); WebIDL::ExceptionOr parse_json_bytes_to_javascript_value(JS::VM&, ReadonlyBytes); WebIDL::ExceptionOr serialize_javascript_value_to_json_string(JS::VM&, JS::Value); WebIDL::ExceptionOr serialize_javascript_value_to_json_bytes(JS::VM&, JS::Value); }