working JSON for user

Look in main for working example
merge of jason branch with master