Deleted inconsitency and dupplicated code in JSON