Lines Matching full:json
2 //another json plugin may have allready initialized this
8 //global variable accessible by other json-type plugins
20 jQuery('.json-tabs').each(function() {
23 id = $tabs.data('json-id'),
24 hash = $tabs.data('json-hash'),
26 $button = $tabs.find('.json-save-button'),
27 $data_original = $tabs.find('.json-data-original'),
28 $textarea = $tabs.find('.json-data-inline'),
29 $data_combined = $tabs.find('.json-data-combined'),
30 $highlight = $tabs.find('.lang-json');
33 //save object with interface to this tabs, so other json plugins can use it
35 //json data, before inline data was combined, readonly
40 //inline json data from textarea, writeable
50 //complete json data, data_original combined with data_inline
58 //function must be called by other json plugins on change of data
82 //other json plugins may prepare data here
87 //validate JSON
90 JSON.parse(text.replace(/%\$.*?%/g, 'null'));
104 id: id, //id of the <json id=___> element
105 … hash: hash, //MD5 hash of the old_text from <json ...>old_text</json> element
106 text: text //new text to write into <json ...>text</json> element
129 'json'
138 //highlight json code
145 // When JSON data are archived, then all json-data-original
146 // will be stored into <json> element itself. 'src' and 'src_ext'
148 var archives = jQuery('.json-tabs.json-make-archive');
150 …var $archive_button = jQuery('<button class="json-archive-button">'+LANG.plugins.json.archive_butt…
156 subdir = prompt(LANG.plugins.json.archive_move);
163 json_data_original.push(jQuery(this).find('.json-data-original').text());
188 'json'
195 //highlight json code
196 jQuery('.json-extract-code').each(function() {
202 jQuery('.json-extract-ejs').each(function() {
204 data = JSON.parse($span.find('#data').text()),
220 //https://stackoverflow.com/questions/8431651/getting-a-diff-of-two-json-objects