wp_query json ouput

You’re running the query but you’re immediately afterwards printing it out, you need to call the method get_posts or use something like a while statement with have_posts:

https://codex.wordpress.org/Class_Reference/WP_Query