Extract convert method for JSON