Êþº¾1• org/json/Testjava/lang/Object()VCode  LineNumberTableLocalVariableTablethisLorg/json/Test;main([Ljava/lang/String;)Vorg/json/Test$1ObjA beany object@E  (Ljava/lang/String;DZ)Vn Ignore the stuff past the end.  org/json/XML   toJSONObject)(Ljava/lang/String;)Lorg/json/JSONObject; "$#java/lang/System %&outLjava/io/PrintStream; (*)org/json/JSONObject +,toString()Ljava/lang/String; .0/java/io/PrintStream 12println(Ljava/lang/String;)V4G{ "list of lists" : [ [1, 2, 3], [4, 5, 6], ] } (6 2 (8 +9(I)Ljava/lang/String; ; +<&(Ljava/lang/Object;)Ljava/lang/String;>À Basic bread Flour Yeast Water Salt Mix all ingredients together. Knead thoroughly. Cover with a cloth, and leave for one hour in warm room. Knead again. Place in a bread baking tin. Cover with a cloth, and leave for one hour in warm room. Bake in the oven at 180(degrees)C for 30 minutes. .@ 1 BCorg/json/JSONML BE +F)(Lorg/json/JSONObject;)Ljava/lang/String; BH IJ toJSONArray((Ljava/lang/String;)Lorg/json/JSONArray; L8Morg/json/JSONArray BO +P((Lorg/json/JSONArray;)Ljava/lang/String;Rï

JSONML is a transformation between JSON and XML that preserves ordering of document features.

JSONML can work with JSON arrays or JSON objects.

Three
little
words

T Robert Smith
12345 Sixth Ave Anytown CA 98765-4321
(V W(Ljava/lang/Object;)VYs{ "entity": { "imageURL": "", "name": "IXXXXXXXXXXXXX", "id": 12336, "ratingCount": null, "averageRating": null } }[org/json/JSONStringer Z Z^ _`object()Lorg/json/JSONWriter;bsingle dfeorg/json/JSONWriter ghkey)(Ljava/lang/String;)Lorg/json/JSONWriter;j MARIE HAA'S dl mnvalue)(Ljava/lang/Object;)Lorg/json/JSONWriter;pJohnnyr MARIE HAA\'Stfoovbarxbaz dz {`array d^~quux€ Thanks, Josh! d‚ ƒ` endObject d… †`endArrayˆobj keys (Š ‹ŒgetNames'(Ljava/lang/Object;)[Ljava/lang/String; *�a‘b Zz Z” m•(J)Lorg/json/JSONWriter; Zl˜ empty-array Zf›answer* d” null¢false d¤ m¥(Z)Lorg/json/JSONWriter;§true©bigSâ~ÙÕ‰³ d­ m®(D)Lorg/json/JSONWriter;°small/Wkä?KT´ empty-object¶longÿÿÿÿÿÿÿ Z‚»two Z… Z¤@X¦fffff Z­ÀYÄone Z* L6 LV L*Êjava/lang/StringÌaStringÎaNumberÐaBoolean (Ò Ó((Ljava/lang/Object;[Ljava/lang/String;)VÕTesting JSONString interface (× ØÙput;(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;Û{slashes: '///', closetag: '', backslash:'\\', ei: {quotes: '"\''},eo: {a: '"quoted"', b:"don't"}, quotes: ["'", '"']}ÝßÇ{foo: [true, false,9876543210, 0.0, 1.00000001, 1.000000000001, 1.00000000000000001, .00000000000000001, 2.00, 0.1, 2e100, -32,[],{}, "string"], to : null, op : 'Good',ten:10} postfix commentáStringã98.6å JSONObject ( è JSONArray L ëint (í Øî*(Ljava/lang/String;I)Lorg/json/JSONObject;ðdoubleEøî�ÿl7> (ô Øõ*(Ljava/lang/String;D)Lorg/json/JSONObject; (÷ Øø*(Ljava/lang/String;Z)Lorg/json/JSONObject; (ú ûüNULLLjava/lang/Object;þboolzero€\u2028
\u2029 
 (  J getJSONArray L Ø(I)Lorg/json/JSONArray;@ŸGõÂ�\) L Ø(D)Lorg/json/JSONArray; so "fine". L Ø((Ljava/lang/Object;)Lorg/json/JSONArray; so . L Ø(Z)Lorg/json/JSONArray;!keys (# ‹$*(Lorg/json/JSONObject;)[Ljava/lang/String;&java/lang/StringBuilder(String: %6 (+ ,- getDouble(Ljava/lang/String;)D %/ 01append(D)Ljava/lang/StringBuilder; %*4 bool: (6 78 getBoolean(Ljava/lang/String;)Z %: 0;(Z)Ljava/lang/StringBuilder;= to: ?to (A BC getString&(Ljava/lang/String;)Ljava/lang/String; %E 0F-(Ljava/lang/String;)Ljava/lang/StringBuilder;H true: J foo: %L 0M-(Ljava/lang/Object;)Ljava/lang/StringBuilder;O op: QopS ten: Uten (W XYgetInt(Ljava/lang/String;)I %[ 0\(I)Ljava/lang/StringBuilder;^ oops: `oops (b c8 optBooleane£First <content> This is "content". 3 JSON does not preserve the sequencing of elements and contents. III T H R E EContent text is an implied structure in XML. JSON does not have implied structure:7everything is explicit.!]]>gaunodostrestruequatrocinqoseisi¯ kSample BookThis is chapter 1. It is not very long or interesting.This is chapter 2. Although it is longer than chapter 1, it is not any more interesting.m*oÎ Fred fbs0001 Scerbo B qcRepository Address Special Collections LibraryABC UniversityMain Library, 40 Circle DriveOurtown, Pennsylvania17654 USAsŠdeluxe&"toot"&toot;Aeksbonusbonus2uXGET / HTTP/1.0 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* Accept-Language: en-us User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; T312461; Q312461) Host: www.nokko.com Connection: keep-alive Accept-encoding: gzip, deflate wx org/json/HTTP wE{ÏHTTP/1.1 200 Oki Doki Date: Sun, 26 May 2002 17:38:52 GMT Server: Apache/1.3.23 (Unix) mod_perl/1.26 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html }d{nix: null, nux: false, null: 'null', 'Request-URI': '/', Method: 'GET', 'HTTP-Version': 'HTTP/1.0'}isNull: �nix (ƒ „8isNull† has: (ˆ ‰8has‹5 GOOGLEKEY '+search+' 0 10 true false latin1 latin1� {Envelope: {Body: {"ns1:doGoogleSearch": {oe: "latin1", filter: true, q: "'+search+'", key: "GOOGLEKEY", maxResults: 10, "SOAP-ENV:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/", start: 0, ie: "latin1", safeSearch:false, "xmlns:ns1": "urn:GoogleSearch"}}}}�" f%oo = b+l=ah ; o;n%40e = t.wo ‘’org/json/CookieList ‘E•+f%oo=blah; secure ;expires = April 24, 2002 —˜org/json/Cookie —E›ž{script: 'It is not allowed in HTML to send a close script tag in a stringso we insert a backslash before the /'}�org/json/JSONTokenerŸ@{op:'test', to:'session', pre:1}{op:'test', to:'session', pre:2} œ6 (¢ £(Lorg/json/JSONTokener;)V¥pre: §pre (© ªYoptInt œ¬ ­®skipTo(C)C .° 1±(I)V³‘Comma delimited list test, '"Strip"Quotes', 'quote, comma', No quotes, 'Single Quotes', "Double Quotes" 1,'2',"3" ,'It is "good,"', "It works." µH¶ org/json/CDL µO¹/ ["", next is an implied null , , ok,] »—{ fun => with non-standard forms ; forgiving => This package can be used to parse formats that are similar to but not stricting conforming to JSON; why=To make it easier to migrate existing data to JSON,one = [[1.00]]; uno=[[{1=>1}]];'+':+6e66 ;pluses=+++;empty = '' , 'double':0.666,true: TRUE, false: FALSE, null=NULL;[true] = [[!,@;*]]; string=> o. k. ; oct=0666; hex=0x666; dec=666; o=0999; noh=0x0x}½ It's all good¿decÁoctÃhexÅmissing (Ç È+(Lorg/json/JSONObject;[Ljava/lang/String;)V .Ê 1WÌm{string: "98.6", long: 2147483648, int: 2147483647, longer: 9223372036854775807, double: 9223372036854775808}Î getIntÐint Òlong Ôlonger ÖlongerØdouble Ústring ÜstringÞ getLong (à áâgetLong(Ljava/lang/String;)J %ä 0å(J)Ljava/lang/StringBuilder;ç getDoubleé good sized (ë Øì*(Ljava/lang/String;J)Lorg/json/JSONObject;îB[2147483647, 2147483648, 9223372036854775807, 9223372036854775808]ð Keys: (ò !ó()Ljava/util/Iterator; õ÷öjava/util/Iterator øùnext()Ljava/lang/Object; Éû ü<valueOfþ: õ hasNext()Z accumulate: stoogeCurly (  Ù accumulate LarryMoeShemp L Ø)(ILjava/lang/Object;)Lorg/json/JSONArray; write:java/io/StringWriter  ( write"(Ljava/io/Writer;)Ljava/io/Writer;3122333!ýContent of the first chapterContent of the second chapter Content of the first subchapter Content of the second subchapterThird Chapter (# $(Ljava/util/Map;)V L& '(Ljava/util/Collection;)V) Joe DeRita (+ 0Ù-stooges/ stoogearray (1 23get&(Ljava/lang/String;)Ljava/lang/Object;5map (7 Ø88(Ljava/lang/String;Ljava/util/Map;)Lorg/json/JSONObject;: collection (< Ø=?(Ljava/lang/String;Ljava/util/Collection;)Lorg/json/JSONObject;{ L@ ØA%(Ljava/util/Map;)Lorg/json/JSONArray; LC ØD,(Ljava/util/Collection;)Lorg/json/JSONArray;Fó{plist=Apple; AnimalSmells = { pig = piggish; lamb = lambish; worm = wormy; }; AnimalSounds = { pig = oink; lamb = baa; worm = baa; Lisa = "Why is the worm talking like a lamb?" } ; AnimalColors = { pig = pink; lamb = black; worm = pink; } } HH ("San Francisco", "New York", "Seoul", "London", "Seattle", "Shanghai")JxThe content of b and The content of cdoremiL Testing Exceptions: N Exception: .P Q2printÿðø .W 1X(D)VZhoward L\ ,](I)D L_ 2`(I)Ljava/lang/Object;ød f h p{"koda": true, "koda": true}rbosanda t*ujava/lang/Exceptionargs[Ljava/lang/String;itLjava/util/Iterator;Lorg/json/JSONArray;jLorg/json/JSONObject;jjLorg/json/JSONStringer;sLjava/lang/String;objLorg/json/Test$1Obj;ar[IjasajtLorg/json/JSONTokener;iIcLjava/util/Collection;mLjava/util/Map;eLjava/lang/Exception; SourceFile Test.java InnerClassesObj!/*·±   w»Y·:¸N²!-¶'¶-3:»(Y·5N²!-¶7¶-²!-¸:¶-=:¸N²!-¶7¶-²!¶?¸AN²!-¶'¶-²!-¸D¶-²!¶?¸GM²!,¶K¶-²!,¸N¶-²!¶?Q:¸AN²!-¶7¶-²!-¸D¶-²!¶?¸GM²!,¶K¶-²!,¸N¶-²!¶?S:¸N²!-¶7¶-»(Y·UN²!-¶'¶-X:»(Y·5N²!-¶7¶-»ZY·\:¶]a¶ci¶ko¶cq¶ks¶cu¶kw¶c¶y¶|}¶c¶k¶�¶„‡¶c¸‰¶k¶�¶�:²!¶-²!»ZY·\¶]޶c¶y¶y¶y�¶k¶„¶„¶„¶�¶�¶-»ZY·\:¶’W ¶“W¶’W¶–W¶’W¶]W—¶™¶y¶„Wš¶™œ¶žWŸ¶™¶kW¡¶™¶£W¦¶™¶£W¨¶™ª¶¬W¯¶™±¶¬W³¶™¶|¶�Wµ¶™W·¶“W¶¹Wº¶–W¶¼W¶½W¶¼W¾¶ÀWÁ¶ÀW¶]W¶¹W¶]Wö™W¶ÀW¶¹W¶–W¶¼W²!¶Å¶-²!»LY¶Å·Æ¶K¶-¼ YOYOYO:»LY·Ç:²!¶È¶-½ÉYËSYÍSYÏS: »(Y ·ÑN-Ô¶ÖW²!-¶7¶-»(YÚ·5N²!-¶7¶-²!-¸:¶-²!ܶ-»(YÞ·5N-àâ¶ÖW-ä»(Y·æ¶ÖW-ç»LY·é¶ÖW-ê9¶ìW-ïñ¶óW-¦¶öW-¡¶öW-Ÿ²ù¶ÖW-ý¦¶ÖW-ÿ¶óW-¶ÖW- ¶ÖW-s¶ M,š¶W,¶W,¶W,¶W,¶W,¶W,»LY·é¶W,»(Y·æ¶W- -¸"¶ÖW²!-¶7¶-²!-¸:¶-²!»%Y'·)-à¶*¶.¶2¶-²!»%Y3·)-ý¶5¶9¶2¶-²!»%Y<·)->¶@¶D¶2¶-²!»%YG·)-¦¶@¶D¶2¶-²!»%YI·)-s¶ ¶K¶2¶-²!»%YN·)-P¶@¶D¶2¶-²!»%YR·)-T¶V¶Z¶2¶-²!»%Y]·)-_¶a¶9¶2¶-d:¸N²!-¶7¶-²!-¸:¶-²!ܶ-¸G:²!¶K¶-²!¸N¶-²!ܶ-f:¸G:²!¶K¶-²!¸N¶-²!ܶ-h:¸N²!-¶7¶-²!-¸:¶-²!ܶ-¸G:²!¶K¶-²!¸N¶-²!ܶ-j¸N²!-¶7¶-²!-¸:¶-²!ܶ-l¸N²!-¶7¶-²!-¸:¶-²!ܶ-n¸N²!-¶7¶-²!-¸:¶-²!ܶ-p¸N²!-¶'¶-²!-¸:¶-²!ܶ-r¸N²!-¶7¶-²!-¸:¶-²!ܶ-t¸vN²!-¶7¶-²!-¸y¶-²!ܶ-z¸vN²!-¶7¶-²!-¸y¶-²!ܶ-»(Y|·5N²!-¶7¶-²!»%Y~·)-€¶‚¶9¶2¶-²!»%Y…·)-€¶‡¶9¶2¶-²!-¸:¶-²!-¸y¶-²!ܶ-ЏN²!-¶7¶-²!-¸:¶-²!ܶ-»(YŒ·5N²!-¶7¶-²!-¸:¶-²!ܶ-ޏ�N²!-¶7¶-²!-¸“¶-²!ܶ-”¸–N²!-¶7¶-²!-¸™¶-²!ܶ-»(Yš·5N²!-¶'¶-²!ܶ-»œYž· : »(Y ·¡N²!-¶'¶-²!»%Y¤·)-¦¶¨¶Z¶2¶- {¶«6 ²! ¶¯»(Y ·¡N²!-¶'¶-²!ܶ-²¸´M,¸·:²!¶-²!ܶ-²!,¶K¶-²!ܶ-¸´M²!,¶K¶-²!ܶ-»LY¸·ÆM²!,¶È¶-²!ܶ-²!,¸:¶-²!ܶ-»(Yº·5N²!-¶7¶-²!ܶ--¦¶5™-¡¶5š ²!¼¶-²!ܶ-»(Y-½ÉY¾SYÀSYÂSYÄS·ÆN²!-¶7¶-²!ܶ-²!»ZY·\¶’,¶k-¶k¶„¶É»(YË·5N²!-¶7¶-²!Ͷ-²!»%YÏ·)-ê¶V¶Z¶2¶-²!»%YÑ·)-µ¶V¶Z¶2¶-²!»%YÓ·)-Õ¶V¶Z¶2¶-²!»%Y×·)-ï¶V¶Z¶2¶-²!»%YÙ·)-Û¶V¶Z¶2¶-²!ݶ-²!»%YÏ·)-ê¶ß¶ã¶2¶-²!»%YÑ·)-µ¶ß¶ã¶2¶-²!»%YÓ·)-Õ¶ß¶ã¶2¶-²!»%Y×·)-ï¶ß¶ã¶2¶-²!»%YÙ·)-Û¶ß¶ã¶2¶-²!æ¶-²!»%YÏ·)-ê¶*¶.¶2¶-²!»%YÑ·)-µ¶*¶.¶2¶-²!»%YÓ·)-Õ¶*¶.¶2¶-²!»%Y×·)-ï¶*¶.¶2¶-²!»%YÙ·)-Û¶*¶.¶2¶--è·¶êW²!-¶7¶-»LYí·ÆM²!,¶K¶-²!ï¶--¶ñL§2+¹ôÀÉ:²!»%Y¸ú·)ý¶D-¶@¶D¶2¶-+¹ÿšÿ˲!¶-»(Y·æN-¶ W- ¶ W-¶ W-¶ M,¶W²!-¶7¶-²!¶-²!-»Y·¶¶É:¸N²!-¶7¶-²!-¸:¶- :¸N²!-¶7¶-²!-¸:¶-¸GM²!,¶K¶-²!,¸N¶-: : »(Y ·"N»LY ·%M-(¶*W-¶*W-,¶ W-, ¶ W-,¶ W-.-,¶0¶ W-4 ¶6W-9 ¶;W->,¶ÖW, ¶?W, ¶BW²!-¶7¶-E:»(Y·5N²!-¶7¶-G:»LY·ÆM²!,¶È¶-I:¸N²!-¶7¶-²!-¸:¶-²!ܶ-¸G:²!¶K¶-²!¸N¶-²!ܶ-²!K¶-²!M¶O»LY·éM,R¶W,T¶W²!,¶È¶-§ :²!¶ɲ!M¶O²!-¶*¶V§ :²!¶ɲ!M¶O²!-Y¶*¶V§ :²!¶ɲ!M¶O²!-Y¶Ö¶ɧ :²!¶ɲ!M¶O²!,¶[¶V§ :²!¶ɲ!M¶O²!,¶^¶ɧ :²!¶ɲ!M¶O²!,a¶¶ɧ :²!¶ɲ!M¶Oc¸N§ :²!¶ɲ!M¶Oe¸N§ :²!¶ɲ!M¶Og¸N§ :²!¶ɲ!M¶O»LY»Y··Ç:²!¶È¶-§ :²!¶ɲ!M¶Oi:»LY·ÆM²!,¶È¶-§ :²!¶ɲ!M¶Ok:¸G:²!¶K¶-§ :²!¶ɲ!M¶Om:¸G:²!¶K¶-§ :²!¶ɲ!M¶Oo:»(Y·5N²!-¶7¶-§ :²!¶ɲ!M¶O»ZY·\:¶]q¶ci¶kq¶cq¶k¶�¶�:²!-¶7¶-§:²!¶ɧ:²!¶s¶-± Ø ú ýt t3@CtVdgtz…ˆt›¦©t¼ÉÌtßæétüt #t6QTtg€ƒt–®±tÄÜßtò t"Y\tfit ƱILMO#P-Q8RBTFULVWW]YcZm[w\}^ƒ_Ž`˜ažc¢d¨e³f½gÃiÉjÔkÞlänèoîpùrs uvw&y/z1{4|9}>~CH€M�R‚WƒZ„]…b†g‡jˆm‰rŠz‹}Œ€z‚�Š�”�—‘œ’Ÿ“¢”¥•ª–­—°˜³™¶š¹�¼œÅ�ËžÒŸØ ß¡å¢ë£ù¤¥¦§+¨9©GªU«]¬f­l®t¯z°�±‡²�³™´Ÿµ¥¶«·³¸º¹ÀºÈ»μÙ¾ïÀÁ ÂÄ+Å7Æ@ÇKÉUÊ`ËjÌrÎvÏxÎ|Ӆԓա֪״ؼÙÄÚÎÛ×ÜáÝìÞ÷ßþàáâãä$å*æ6çBèNéYêcìí›î¸ïÔððñ ò*óGõLöR÷]øgùoûvü‚ý�þ•š¡­¸ÀÅË Ö à è ï û *29DNV]hrz �!‹"•#�%¤&¯'¹(Á*È+Ó,Ý-å/ì0÷12 456<7Y8c9m:u<|O‡P‘Q™S¤T¯U¹VÁXÈYÓZÝ[å]ì^÷_` bcd&f2g<hFicjlktl~mˆn�p—r�s¥t­u¸vÀwÆxÑyÙ{ä|î}ö~  � ‚ ƒ &„ 8… Aˆ I‰ nŠ yŒ �� œ� §� ²’ »“ ×” ó• – ,— I™ Rš n› Šœ §� Þ à  é¡ ¢ !£ >¤ Z¥ w§ ‚¨ �ª ˜« £­ ¬® ±¯ ´° ¿± ã¯ ìµ õ¶ ý· ¸ ¹ º &» /¼ :¾ C¿ TÁ Y _à jÄ tÆ yÇ È ŠÉ ”Ë šÌ ¥Í ¯Ï ²Ð µÒ ¿Ó ÉÔ ÔÕ ßÖ ê× õØ Ù Ú Û #Ü ,Ý 3Þ :ß Eá Jâ Tã _å dæ nç xé }ê ƒì Ží ˜î  ï §ð ³ñ ¾ò Æõ Ï÷ Øù àú èû ðü ýý ÿþ "*3C E M VgiqzˆŠ’›©«³¼ Ì!Î"Ö$ß&é'ë(ó*ü,-.02#3%4-668F9T:V;^>g@lAvBƒC…D�G–I›J¢K±L³M»PÄRÉSÐTßUáVéYò[÷\]^_b"d+e-f0g6h;iAjFkIlLeNm\n^oiqkrvt 8wvw ±¸xyƒæ�zT{|/:}~#F€h�‚ iƒ„ ^…z+ >†w 27‡ˆ lý‰Š ²·‹Œ µ´�Ž ÿ��"��E��i��Š��«��Î��ë����%��V��…��³��á����^��k ��‘’“ ”