Combining theme.json

2 Bedrooms

2 Bedrooms

2 Bathrooms

2 Bathrooms

2 Receptions

2 Receptions

property hive is active and this is the block!

Price:
Warning: Undefined property: stdClass::$price_formatted in /nas/content/live/gomo/wp-content/plugins/gomo-acf-plugin/blocks/gomo-property-hive-features/template.php on line 30

Bedrooms:
Warning: Undefined property: stdClass::$bedrooms in /nas/content/live/gomo/wp-content/plugins/gomo-acf-plugin/blocks/gomo-property-hive-features/template.php on line 31

Bathrooms:
Warning: Undefined property: stdClass::$bathrooms in /nas/content/live/gomo/wp-content/plugins/gomo-acf-plugin/blocks/gomo-property-hive-features/template.php on line 32

Property Type:
Warning: Undefined property: stdClass::$property_type in /nas/content/live/gomo/wp-content/plugins/gomo-acf-plugin/blocks/gomo-property-hive-features/template.php on line 33

Bedrooms: field_66fa78028aa36

Bathrooms: field_66fa78028a9ef

Saved as a php file in the mu-plugins folder each part must exsist in the styles folder:

<?php
function combine_json_files( $input_files = array(), $output_path ) {
	$contents = [];
	foreach ( $input_files as $input_file ) {
		$contents = array_replace_recursive( $contents, json_decode( file_get_contents( $input_file ), true ) );
	}
	file_put_contents( $output_path, json_encode( $contents ) );
}

combine_json_files(
	[
		get_theme_file_path( 'styles/settings.json' ),
		get_theme_file_path( 'styles/colours.json' ),
        get_theme_file_path( 'styles/templates.json' ),
        get_theme_file_path( 'styles/styles.json' ),
	],
	get_theme_file_path( 'theme.json' )
);
<?php
function combine_json_files( $input_files = array(), $output_path ) {
	$contents = [];
	foreach ( $input_files as $input_file ) {
		$contents = array_replace_recursive( $contents, json_decode( file_get_contents( $input_file ), true ) );
	}
	file_put_contents( $output_path, json_encode( $contents ) );
}

combine_json_files(
	[
		get_theme_file_path( 'styles/settings.json' ),
		get_theme_file_path( 'styles/colours.json' ),
        get_theme_file_path( 'styles/templates.json' ),
        get_theme_file_path( 'styles/styles.json' ),
	],
	get_theme_file_path( 'theme.json' )
);