/Server response stringified json Secret
Created
January 10, 2014 07:00
Why is the "<" character not being printed?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"asset":{"key":"templates/404.liquid","public_url":null,"value":"\u003Cdiv id=\"404\" class=\"row\"\u003E\n \u003Cdiv class=\"span12\"\u003E\n \n \u003Ch2\u003EPage not found\u003C/h2\u003E\n \u003Cspan class=\"subtext\"\u003ESorry, we couldn't find this page.\u003C/span\u003E\n \n \u003C/div\u003E\n\u003C/div\u003E","created_at":"2013-12-30T01:51:44-05:00","updated_at":"2013-12-30T01:51:44-05:00","content_type":"text/x-liquid","size":171,"theme_id":5891557}} | |
div id="404" class="row" | |
div class="span12" | |
h2Page not found/h2 | |
span class="subtext"Sorry, we couldn't find this page./span | |
/div | |
/div |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$stderr.puts response.body | |
body = JSON.parse(response.body) | |
$stderr.puts body["asset"]["value"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"asset":{"key":"templates/404.liquid","public_url":null,"value":"\u003Cdiv id=\"404\" class=\"row\"\u003E\n \u003Cdiv class=\"span12\"\u003E\n \n \u003Ch2\u003EPage not found\u003C/h2\u003E\n \u003Cspan class=\"subtext\"\u003ESorry, we couldn't find this page.\u003C/span\u003E\n \n \u003C/div\u003E\n\u003C/div\u003E","created_at":"2013-12-30T01:51:44-05:00","updated_at":"2013-12-30T01:51:44-05:00","content_type":"text/x-liquid","size":171,"theme_id":5891557}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment