PRO: Show Page-Properties

Challenge: Show and use WordPress-Page-Properties like User-ID, Page-ID etc.
Solution: Create a new JCI-Template with name “showpageproperties” and URL “dummyrequest” (or an URL with JSON) and this twig-Code:
{% set pageprop = wp_get_page_properties() %}
get_current_user_id: {{pageprop.get_current_user_id}}<br>
get_post.ID: {{pageprop.get_post.ID}}<br>
all data:<br>{{pageprop  |json_encode | e}}
Then you can use this Shortcode to display the properties:
[jsoncontentimporterpro nameoftemplate="showpageproperties"]

In Action:
get_current_user_id: 0
get_post.ID: 8431
all data:
{"get_permalink":"https://api.json-content-importer.com/pro-show-page-properties/","home_url":"https://api.json-content-importer.com","get_current_user_id":0,"get_post":{"ID":8431,"post_author":"1","post_date":"2021-05-02 20:25:48","post_date_gmt":"2021-05-02 18:25:48","post_content":"<strong>Challenge:</strong> Show and use Wordpress-Page-Properties like User-ID, Page-ID etc.<hr>\r\n<strong>Solution:</strong> Create a new JCI-Template with name \"showpageproperties\" and URL \"dummyrequest\" (or an URL with JSON) and this twig-Code:\r\n\r\n{% set pageprop = wp_get_page_properties() %}\r\nget_current_user_id: {{pageprop.get_current_user_id}}&lt;br&gt;\r\nget_post.ID: {{pageprop.get_post.ID}}&lt;br&gt;\r\nall data:&lt;br&gt;{{pageprop |json_encode | e}}\r\n[/code]\r\nThen you can use this Shortcode to display the properties:\r\n\r\n[[ nameoftemplate=&quot;showpageproperties&quot;]]\r\n[/code]\r\n<hr><strong>In Action:</strong><br>\r\n[ nameoftemplate=\"showpageproperties\"]\r\n<hr>\r\nRemakr: In the field \"post_content\" te string \"\" is removed, as this could be cause trouble in executing there shortcodes again and again","post_title":"PRO: Show Page-Properties","post_excerpt":"","post_status":"publish","comment_status":"closed","ping_status":"open","post_password":"","post_name":"pro-show-page-properties","to_ping":"","pinged":"","post_modified":"2021-05-02 20:28:32","post_modified_gmt":"2021-05-02 18:28:32","post_content_filtered":"","post_parent":0,"guid":"http://api.json-content-importer.com/?p=8431","menu_order":0,"post_type":"post","post_mime_type":"","comment_count":"0","filter":"raw"}}
Remakr: In the field “post_content” te string “jsoncontentimporterpro” is removed, as this could be cause trouble in executing there shortcodes again and again