alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Struts example source code file (json-1.txt)

This example Struts source code file (json-1.txt) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Struts tags/keywords

The Struts json-1.txt source code

{
    "date": "1999-12-31T23:59:59",
    "date2": "31\/12\/99",
  	"array": ["str0", "str1"],
  	"intArray": [1, 2],
  	"beanArray": [ {
  						"stringField": "bean1"
  					},
  					{
  					    "stringField": "bean2"
  					}
  	],
	"list": ["a", "a", "\"", "\\", "\/", "\b", "\f", "\n", "\r", "\t"],
	"collection": ["b", 1, [10, 12]],
	"collection2": [{
						"booleanField": true,
						"charField": "s",
						"doubleField": 10.1,
						"floatField": 1.5,
						"intField": 10,
						"longField": 100,
						"objectField": {
							"booleanField": false,
							"charField": "\u0000",
							"doubleField": 2.2,
							"floatField": 1.1,
							"intField": 0,
							"longField":0,
							"objectField":null,
							"stringField":"  "
					    },
					    "stringField": "str"
	}],
	"foo": "foo",
	"map": {
		"a": 1,
		"c": [1.0, 2.0]
	},
	"result": null,
	"bean": {
	    "booleanField": true,
		"stringField" : "test",
		"intField" : 10,
		"charField": "s",
		"doubleField": 10.1,
		"byteField": 3
	},
	"foo2" : "ignoreme"
}

Other Struts examples (source code examples)

Here is a short list of links related to this Struts json-1.txt source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.