Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| <?php | |
| /** | |
| * Check if content is JSON | |
| * | |
| * @param string $content | |
| * @return boolean | |
| */ | |
| function w3_is_json($content) { | |
| return json_decode($content) !== NULL; | |
| } |