protected function render_json_template( $slug ) {
		$options = $this->get_options();

		$options->settings->items = papi_to_array( $options->settings->items );

		foreach ( $options->settings->items as $key => $value ) {
			$property = $this->prepare_property_for_json( papi_property( $value ) );

			if ( $property === false ) {
				unset( $options->settings->items[$key] );
				continue;
			}

			$options->settings->items[$key] = $property;
		}

		papi_render_html_tag( 'script', [
			'data-papi-json' => esc_attr( sprintf( '%s_repeater_json', $slug ) ),
			'type'           => 'application/json',
			papi_maybe_json_encode( [$options] )
		] );
	}
protected function render_json_template( $slug ) {
		$options = $this->get_options();

		$options->settings->items = papi_to_array( $options->settings->items );

		foreach ( $options->settings->items as $key => $value ) {
			$property = $this->prepare_property_for_json( papi_property( $value ) );

			if ( $property === false ) {
				unset( $options->settings->items[$key] );
				continue;
			}

			$options->settings->items[$key] = $property;
		}

		papi_render_html_tag( 'script', [
			'data-papi-json' => esc_attr( sprintf( '%s_repeater_json', $slug ) ),
			'type'           => 'application/json',
			papi_maybe_json_encode( [$options] )
		] );
	}
protected function render_json_template ( $ slug ) { $ options = $ this -> get_options ( ) ; $ options -> settings -> items = papi_to_array ( $ options -> settings -> items ) ; foreach ( $ options -> settings -> items as $ key => $ value ) { $ property = $ this -> prepare_property_for_json ( papi_property ( $ value ) ) ; if ( $ property === false ) { unset ( $ options -> settings -> items [ $ key ] ) ; continue ; } $ options -> settings -> items [ $ key ] = $ property ; } papi_render_html_tag ( 'script' , [ 'data-papi-json' => esc_attr ( sprintf ( '%s_repeater_json' , $ slug ) ) , 'type' => 'application/json' , papi_maybe_json_encode ( [ $ options ] ) ] ) ; }
Render property JSON template.

@param string $slug
Render property JSON template .