Like JSON.stringify, but doesn't throw on circular references. Usage Takes the same arguments as JSON.stringify. var stringify = require('json-stringify-safe'); var circularObj = {}; circularObj.circularRef = circularObj; circularObj.list = [... 続きを読む
Diff & Patch for JavaScript objects and arrays (ie. any JSON serializable structure) JsonDiffPatch is a small library that allows to diff object graphs, create a patch (in pure JSON), and apply it to update an original version. Now available ... 続きを読む
2012-12-12 JSON PointerとJSON PatchがLast Call JSON PointerとJSON PatchにLast Callがかかりました。これで後はIESGが承認すれば、RFCになる事になります。-00の時と比べると変更になっている所も多々あるので、かいつまんで紹介します。 JSON Pointer JSON... 続きを読む
[Docs] [txt|pdf|xml|html] [Tracker] [WG] [Email] [Diff1] [Diff2] [Nits] Versions: (draft-pbryan-json-patch) 00 01 02 Applications Area Working Group P. Bryan, Ed. Internet-Draft ForgeRock Intended status: Informational M. Nottingham, Ed. Expi... 続きを読む
JSON for the ES5 era. View the Project on GitHub aseemk/json5 Download ZIP File Download TAR Ball View On GitHub JSON isn't the friendliest to write and maintain by hand. Keys need to be quoted; objects and arrays can't have trailing commas; ... 続きを読む
DB, GoogleApps, coffeescriptしかだよ。webサービスはスピードが命です。1日でも早くサービスをリリースし、1時間でも早くサーバーを構築し、1分でも早くコードを書き、1秒でも早くキーボードをカチャカチャターンしなくてはいけません。 遅れの原因そんな中、割り... 続きを読む
XMLの操作を標準化した物としてDOMやらXPathやら各種規格が存在するわけですが、JSONでもそのようなよく利用される操作を共通化した物が存在すると便利な場面もあるかもしれません。そこでIETFのappsawg WGで提案されているのが、JSON PointerとJSON Patchです... 続きを読む
[1]http://d.hatena.ne.jp/ockeghem/20110907/p1 [2]http://www.atmarkit.co.jp/fcoding/articles/webapp/05/webapp05a.html [3] http://msdn.microsoft.com/ja-jp/asp.net/ff713315 [4] http://labs.cybozu.co.jp/blog/kazuho/archives/2007/01/cross-site_inc... 続きを読む
Ajaxなアプリケーションにおいて、サーバからJSONを返す場合に、JSON自体はvalidであるにも関わらず、(IEの都合で)エスケープが不足していて脆弱性につながってる場合があるので、書いておきます。 発生するかもしれない脆弱性JSONのエスケープが不足している場... 続きを読む
JSONSelect is an experimental selector language for JSON. It makes it easy to access data in complex JSON documents. It feels like CSS. Why not give it a try? { "name": { "first": "Lloyd", "last": "Hilaiel" }, "favoriteColor": "yellow", "lang... 続きを読む
JavaScript, JSON, ECMAScript | 00:56 | JSON編以外はありません. Edge case "JSON: The JavaScript subset that isn't Timeless" URL2011-05-16 15:49:26 via PNBTこのような記事がJSON: The JavaScript subset that isn’t?Timelessつまり, LineTerminatorに... 続きを読む
Overview A strict JSON parser and generator for Objective-C. It adds categories to existing Objective-C objects for a super-simple interface. More flexible APIs are also provided for added control. Documentation API documentation generated fr... 続きを読む
Normally when encountering a JSON document (content type "application/json"), Firefox simply prompts you to download the file. With the JSONView extension, JSON documents are shown in the browser similar to how XML documents are shown. The do... 続きを読む
() - 621 users - Weekly installs: 115 JSONView port for chrome. http://benhollis.net/software/jsonview/ (original firefox extension) This extension detects JSON content without taking account of URL formatting. Note : you can configure JSON p... 続きを読む
Today is Wakate IT Benkyou-kai (in English, "Young IT Study Meeting"?). We read Secrets of the JavaScript Ninja and today's chapter is "Code Evaluation". This book contains many real-world examples. We saw Caja, Prototype, json2.js, base2, Pa... 続きを読む
Jaql(a query language desired for JSON:JSON用に位置づけられたクエリ言語)は、JSON型式のデータを処理するためのクエリ言語で、Apache HadoopのMapReduceを処理するための実装が存在します。日本語では「じゃっくる」と発音します。ジャッカルに似ている... 続きを読む
■19.0 Introduction 従来のAjaxで受け取った文字列などのデータはホント挿入するまで安全なのかははかり知ることができないというセキュリティ的な弱点があった。 そこでJSONが登場。ECMA5ではJSON.parseはネイティブ実装されているので高速に動作し、evalと違... 続きを読む
続・先取り! Google Chrome Extensions 第8回 Google Chrome拡張とHTML5 #2 2010年1月25日 太田昌吾 Google Chrome, Chrome拡張, JavaScript, Extensions, ECMAScript 5, HTML5, CSS3 Chrome, オブジェクト, メソッド 1 2 こんにちは,太田です。今回はGoogle... 続きを読む
こんな感じの投稿システムがあったとしますsqlite> .tablescomments posts む、sqlite3には mysql とかの describe 相当のコマンドが無いのだろうか。とりあえずデータを突っ込んだ select で勘弁してね。 id|title|body|created_at|updated_at 1|title1|body|2... 続きを読む
関係を持ったテーブルと出力方法についてRails初心者にありがちなメモをするよ。ちなみに、環境は Ruby1.9.2 と Rails3 です。 テーブル間のリレーションについてユーザ情報テーブルと、ユーザが持ってる所持品のテーブル的なものがあるとして。面倒なのでスゲ... 続きを読む