Added check to era loading and json encode to several fields
Added json_encode to all date json generators
Added json-encode to all era