Click here to Skip to main content
11,932,446 members (46,408 online)
Click here to Skip to main content


17 bookmarked

Improving Maintainability of Legacy Code With a JSON Architecture

, , 31 May 2012 CPOL
This article details how to make a legacy code base more maintainable by utilizing a JSON architecture.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" >
<title>Sample Page</title>
<link type="text/css" rel="stylesheet" href="" />
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript">
	$(function () {
		var directive = {
			'#FirstName@value': 'firstname',
			'#LastName@value': 'lastname'
		$('form[name=Main]').render(window.parent.jsonData, directive);

	function save() {
		window.parent.jsonData.firstname = $('#FirstName').val();
		window.parent.jsonData.lastname = $('#LastName').val();

<form name="Main">
<h1>Sample Module</h1><hr />
<label>First Name</label><input type="text" id="FirstName" /><br />
<label>Last Name</label><input type="text" id="LastName" /><br />
<input type="button" value="Save" onclick="save();" />

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Authors

Team Leader Cayen Systems
United States United States
No Biography provided
Group type: Organisation

1 members

Cayen Systems
Cayen Systems
United States United States
Cayen Systems develops online data management software for non-profit and education organizations with a team of experienced and dedicated individuals located in Milwaukee, Wisconsin. We provide the most comprehensive software solutions for information management, tracking and data reporting available today. Specializing in developing easy to use and efficient solutions, we consistently help our clients increase their productivity and reduce the costs of program management.
Group type: Organisation

22 members

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.151126.1 | Last Updated 31 May 2012
Article Copyright 2012 by rcarlson-cayen, Cayen Systems
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid