refactory
move codes to KV2JSON.pm
experimentally impliment array rule like php
experimentally impliment hash rule like rails form