json_encode( $string )


Description Description


Source Source

File: wp-includes/compat.php

285
286
287
288
289
290
291
292
293
294
function json_encode( $string ) {
    global $wp_json;
 
    if ( ! ( $wp_json instanceof Services_JSON ) ) {
        require_once( ABSPATH . WPINC . '/class-json.php' );
        $wp_json = new Services_JSON();
    }
 
    return $wp_json->encodeUnsafe( $string );
}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.