Skip to content

Instantly share code, notes, and snippets.

View danilopopeye's full-sized avatar
🏦
...

Danilo danilopopeye

🏦
...
View GitHub Profile
@danilopopeye
danilopopeye / json-lint
Created October 2, 2008 16:53
Parse and check your JSON
CmdUtils.CreateCommand({
name: "json-lint",
homepage: "http://ubiquity.danilosousa.net/",
author: { name: "Danilo Sousa", email: "eu@danilosousa.net" },
takes: { "json code": noun_arb_text },
icon: "chrome://ubiquity/content/icons/page_code.png",
description: "Parse and check your JSON.",
preview: function( previewBlock, directObject ) {
var code = directObject.text;
var url = "http://www.jsonlint.com/ajax/validate";