You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: object_value.rs
    path of file: ./repos/tools/crates/rome_json_formatter/src/json/value
    
    the code of the file until where you have to start completion: use crate::prelude::*;
use rome_formatter::{format_args, write};
use rome_json_syntax::JsonObjectValue;
use rome_rowan::AstNode;

#[derive(Debug, Clone, Default)]
pub(crate) struct FormatJsonObjectValue;

impl FormatNodeRule<JsonObjectValue> for FormatJsonObjectValue {
    fn fmt_fields(&self, node: &JsonObjectValue, f: &mut JsonFormatter) -> FormatResult<()> {
        let should_expand = node.json_member_list().syntax().has_leading_newline();

        let list = format_with(|f| {
            write!(
                f,
                [group(&soft_space_or_block_indent(
                    &node.json_member_list().format()
                ))
                .should_expand(should_expand)]
            )
        });
        if f.comments().has_leading_comments(node.syntax()) {
            write!(
                f,
                [
                    format_leading_comments
    
    fn fmt_fields(&self, node: &JsonObjectValue, f: &mut JsonFormatter) -> FormatResult<()> {
        let should_expand = node.json_member_list().syntax().has_leading_newline();

        let list = format_with(|f| {
            write!(
                f,
                [group(&soft_space_or_block_indent(
                    &node.json_member_list().format()
                ))
                .should_expand(should_expand)]
            )
        });
        if f.comments().has_leading_comments(node.syntax()) {
            write!(
                f,
                [
                    format_leading_comments(node.syntax()),
                    group(&format_args![
                        node.l_curly_token().format(),
                        list,
                        node.r_curly_token().format()
                    ]),
                ]
            )
        } else {
            write!(
                f,
                [
                    node.l_curly_token().format(),
                    list,
                    node.r_curly_token().format()
                ]
            )
        }
    }