Removed a minor bug when writing json for war service. Now working with war