Jennifer Lopez and Marc Anthony’s divorce has been finalised nearly three years after the singers separated.

Los Angeles Superior Court Judge John Sandoz finalised the couple’s break-up on Monday, awarding the former couple joint legal custody of their six-year-old twin children, court records show.

The pair agreed that Lopez will have their son and daughter most of the time, with Anthony caring for them for seven days a month. The singers also agreed that no child or spousal support was necessary.

The singers also agreed to do whatever they can to shield their children from paparazzi and reporters. The judgment states both Lopez and Anthony recognise “that exposing the children to public spectacle and failing to shield the children from aggressive news organisations, photographers, etc. is not the children’s best interest.”

The judgment was first reported on Wednesday by celebrity website TMZ.

Anthony filed for divorce in April 2012 but the pair separated in July 2011.

Anthony’s latest Spanish album 3.0 has been a hit, and he announced earlier this year that he’s working an English-language pop album. Lopez releases her latest album A.K.A. on Thursday.

A judge hearing a dispute between Anthony and his ex-wife Dayanara Torres issued a proposed ruling on June 11 that if finalised would require the Latin singer to increase his child support to their two sons, ages 10 and 13, to nearly $27,000 a month. Anthony is also required to pay $12,000 a year for Torres’ and their sons’ vacation expenses, plus medical expenses and tuition costs.

The proposed order will become official in early July unless attorneys raise new valid legal issues.